Re: [AD] Current CVS: load_datafile_object fails for individual compression

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Peter Wang wrote:

On Monday 21 February 2005 00:09, Peter Wang wrote:
That looks about right, thanks.  I will try to create a patch later in
the week.  We probably should have a test case or example for
load_datafile_object().
Any news on this one?

Sorry, forgot all about it.

Patch attached.  I think that's all to it.

Peter
Index: src/file.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/file.c,v
retrieving revision 1.55
diff -u -p -r1.55 file.c
--- src/file.c	1 Feb 2005 13:12:06 -0000	1.55
+++ src/file.c	8 Mar 2005 08:37:53 -0000
@@ -2009,6 +2009,11 @@ PACKFILE *pack_fclose_chunk(PACKFILE *f)
       while (f->normal.todo > 0)
 	 pack_getc(f);
 
+      if (f->normal.unpack_data) {
+	 free_lzss_unpack_data(f->normal.unpack_data);
+	 f->normal.unpack_data = NULL;
+      }
+
       free_packfile(f);
    }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/