diff options
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-filter-gzip.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index c73b53684e..8b3df0c46d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2004-05-31 Jeffrey Stedfast <fejj@ximian.com> + + * camel-mime-filter-gzip.c (camel_mime_filter_gzip_finalize): + Don't leak the zlib stream internals. + 2004-05-27 Jeffrey Stedfast <fejj@novell.com> Fixes bug #59191. diff --git a/camel/camel-mime-filter-gzip.c b/camel/camel-mime-filter-gzip.c index f3c640240b..26b9e4ee91 100644 --- a/camel/camel-mime-filter-gzip.c +++ b/camel/camel-mime-filter-gzip.c @@ -149,6 +149,11 @@ camel_mime_filter_gzip_finalize (CamelObject *object) CamelMimeFilterGZip *gzip = (CamelMimeFilterGZip *) object; struct _CamelMimeFilterGZipPrivate *priv = gzip->priv; + if (gzip->mode == CAMEL_MIME_FILTER_GZIP_MODE_ZIP) + deflateEnd (priv->stream); + else + inflateEnd (priv->stream); + g_free (priv->stream); g_free (priv); } |