[glib: 1/5] gio/glib-compile-resources.c: Unref objects in error path
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/5] gio/glib-compile-resources.c: Unref objects in error path
- Date: Sat, 24 Aug 2019 14:22:58 +0000 (UTC)
commit f731dd376c6e0eba5441f1f91e51f36006a16b9b
Author: Colin Walters <walters verbum org>
Date: Mon Aug 19 22:51:25 2019 +0200
gio/glib-compile-resources.c: Unref objects in error path
gio/glib-compile-resources.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]