[glib/wip/gsubprocess] GSubprocess: [rebase] glib-compile-resources: unref subprocesses



commit 14eb9b2f219357c14068bb61406f21487bf2e0c7
Author: Colin Walters <walters verbum org>
Date:   Thu Jun 21 20:40:42 2012 -0400

    GSubprocess: [rebase] glib-compile-resources: unref subprocesses

 gio/glib-compile-resources.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 51e32b9..c9ccb2c 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);
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]