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 /camel/camel-mime-filter-gzip.c | |
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
Diffstat (limited to 'camel/camel-mime-filter-gzip.c')
-rw-r--r-- | camel/camel-mime-filter-gzip.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |