gio/glib-compile-resources.c: Unref objects in error path

This commit is contained in:
Colin Walters 2019-08-19 22:51:25 +02:00 committed by Emmanuel Fleury
parent 1f79c7f7c0
commit f731dd376c

View File

@ -476,6 +476,9 @@ end_element (GMarkupParseContext *context,
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
_("Error compressing file %s"), _("Error compressing file %s"),
real_file); real_file);
g_object_unref (compressor);
g_object_unref (out);
g_object_unref (out2);
goto cleanup; goto cleanup;
} }