diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-06-01 11:40:24 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-01 11:40:24 +0800 |
commit | 6df4add2194d07148f722c2557aa54bff3744c00 (patch) | |
tree | 428a9b8d004474a45f870ca6e5b1b48b40ca2a3c | |
parent | bf5002030e4831dc1d41baff1e7088df5063b785 (diff) | |
download | gsoc2013-evolution-6df4add2194d07148f722c2557aa54bff3744c00.tar gsoc2013-evolution-6df4add2194d07148f722c2557aa54bff3744c00.tar.gz gsoc2013-evolution-6df4add2194d07148f722c2557aa54bff3744c00.tar.bz2 gsoc2013-evolution-6df4add2194d07148f722c2557aa54bff3744c00.tar.lz gsoc2013-evolution-6df4add2194d07148f722c2557aa54bff3744c00.tar.xz gsoc2013-evolution-6df4add2194d07148f722c2557aa54bff3744c00.tar.zst gsoc2013-evolution-6df4add2194d07148f722c2557aa54bff3744c00.zip |
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.
svn path=/trunk/; revision=26135
-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); } |