diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-06-01 03:40:24 +0000 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-01 03:40:24 +0000 |
commit | 486aa52ebac7504a727b21911fc45300f84c927b (patch) | |
tree | ceccf3c073f4b629f84b47e0fd9ebd1840c42a2e | |
parent | a2bcfebc49b726a4137da84d3e904bafc083db9e (diff) | |
download | evolution-data-server-486aa52ebac7504a727b21911fc45300f84c927b.tar.gz |
Don't leak the zlib stream internals.
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.
-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 c73b53684..8b3df0c46 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 f3c640240..26b9e4ee9 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); } |