aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dictzip-input-stream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dictzip-input-stream.c b/src/dictzip-input-stream.c
index e3c0d7c..f539790 100644
--- a/src/dictzip-input-stream.c
+++ b/src/dictzip-input-stream.c
@@ -335,7 +335,9 @@ static void
dictzip_input_stream_finalize (GObject *gobject)
{
DictzipInputStreamPrivate *priv = DICTZIP_INPUT_STREAM (gobject)->priv;
- g_object_unref (priv->file_info);
+
+ if (priv->file_info)
+ g_object_unref (priv->file_info);
g_free (priv->chunks);
g_free (priv->input_buffer);
inflateEnd (&priv->zs);