summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}