shithub: freetype+ttf2subf

Download patch

ref: a3c378024bfb412f021223bc7eca3d5030423060
parent: 641afc9c8871ed8044011929b1b1785ef3ccee0a
author: David Turner <david@freetype.org>
date: Fri Feb 28 03:32:46 EST 2003

* src/gzip/ftgzip.c (ft_gzip_file_done): fixed memory leak, the ZLib
    stream was not properly finalized

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-28  Pixel  <pixel@mandrakesoft.com>
+
+    * src/gzip/ftgzip.c (ft_gzip_file_done): fixed memory leak, the ZLib
+    stream was not properly finalized
+
 2003-02-25  Anthony Fok  <anthony@thizlinux.com>
 
     * src/cache/ftccmap.c: the cmap cache now supports UCS-4 charmaps
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -276,6 +276,8 @@
   {
     z_stream*  zstream = &zip->zstream;
 
+    inflateEnd( zstream );
+
     /* clear the rest */
     zstream->zalloc    = NULL;
     zstream->zfree     = NULL;
--