From 7a50e76417971e537cd290afc441339d136ed326 Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 28 Feb 2003 08:32:46 +0000 Subject: [PATCH] * src/gzip/ftgzip.c (ft_gzip_file_done): fixed memory leak, the ZLib stream was not properly finalized --- ChangeLog | 5 +++++ src/gzip/ftgzip.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2bf5efb5b..8c2c416e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-28 Pixel + + * src/gzip/ftgzip.c (ft_gzip_file_done): fixed memory leak, the ZLib + stream was not properly finalized + 2003-02-25 Anthony Fok * src/cache/ftccmap.c: the cmap cache now supports UCS-4 charmaps diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c index 32c938cbf..45f934b19 100644 --- 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;