aboutsummaryrefslogtreecommitdiff
path: root/src/dictzip-input-stream.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-07-18 19:47:07 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-07-18 19:47:07 +0200
commitf8a839511452d7e94c2f9c445b1a4ab8eafd66c6 (patch)
treeba351ad029e74061fc058e631f1f7c3ec642eb8d /src/dictzip-input-stream.c
parent1df702127608761b12aa8a74d141747cf405069f (diff)
downloadtdv-f8a839511452d7e94c2f9c445b1a4ab8eafd66c6.tar.gz
tdv-f8a839511452d7e94c2f9c445b1a4ab8eafd66c6.tar.xz
tdv-f8a839511452d7e94c2f9c445b1a4ab8eafd66c6.zip
Fix another error path
Diffstat (limited to 'src/dictzip-input-stream.c')
-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);