From f8a839511452d7e94c2f9c445b1a4ab8eafd66c6 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 18 Jul 2013 19:47:07 +0200 Subject: Fix another error path --- src/dictzip-input-stream.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dictzip-input-stream.c') 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); -- cgit v1.2.3-70-g09d2