diff options
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); } |