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,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);