summaryrefslogtreecommitdiff
path: root/gio/glib-compile-resources.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/glib-compile-resources.c')
-rw-r--r--gio/glib-compile-resources.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index ccffbce2c..9b82ebade 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -476,7 +476,10 @@ end_element (GMarkupParseContext *context,
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
_("Error compressing file %s"),
real_file);
- goto cleanup;
+ g_object_unref (compressor);
+ g_object_unref (out);
+ g_object_unref (out2);
+ goto cleanup;
}
g_free (data->content);