Commit 9afcac62 authored by Christian Persch's avatar Christian Persch

Don't leak the input stream

... if the handle is finalised without close having been called.
parent af8dc1fe
......@@ -127,6 +127,10 @@ instance_dispose (GObject * instance)
g_object_unref (self->priv->base_gfile);
self->priv->base_gfile = NULL;
}
if (self->priv->data_input_stream) {
g_object_unref (self->priv->data_input_stream);
self->priv->data_input_stream = NULL;
}
#elif defined(HAVE_GSF)
if (self->priv->gzipped_data) {
g_object_unref (self->priv->gzipped_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment