summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-06-21 20:40:42 -0400
committerColin Walters <walters@verbum.org>2012-06-21 20:40:42 -0400
commit14eb9b2f219357c14068bb61406f21487bf2e0c7 (patch)
treefe68c0ae873b9acc5ff49ac59fd4210e2717b1e7
parent930f3b3f356a2f5b89dbcfdd70782c4329f4fea1 (diff)
downloadglib-wip/gsubprocess.tar.gz
GSubprocess: [rebase] glib-compile-resources: unref subprocesseswip/gsubprocess
-rw-r--r--gio/glib-compile-resources.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 51e32b97a..c9ccb2c23 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -320,10 +320,13 @@ end_element (GMarkupParseContext *context,
if (!g_subprocess_run_sync (proc, NULL, &my_error))
{
+ g_object_unref (proc);
g_propagate_error (error, my_error);
goto cleanup;
}
+ g_object_unref (proc);
+
g_free (real_file);
real_file = g_strdup (tmp_file);
}
@@ -362,10 +365,13 @@ end_element (GMarkupParseContext *context,
if (!g_subprocess_run_sync (proc, NULL, &my_error))
{
+ g_object_unref (proc);
g_propagate_error (error, my_error);
goto cleanup;
}
+ g_object_unref (proc);
+
g_free (real_file);
real_file = g_strdup (tmp_file2);
}