[gegl] bin/gegl: unref the graph after main_loop_run return



commit c1c2e1273b67eab2f4cd3cd040b6c12f148275f5
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sat Sep 3 19:03:04 2011 +0200

    bin/gegl: unref the graph after main_loop_run return
    
    and do not set the window-title if there is no file.

 bin/gegl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bin/gegl.c b/bin/gegl.c
index 5449a28..708baf3 100644
--- a/bin/gegl.c
+++ b/bin/gegl.c
@@ -218,12 +218,12 @@ main (gint    argc,
         {
           GeglNode *output = gegl_node_new_child (gegl,
                                                   "operation", "gegl:display",
-                                                  "window-title", o->file,
+                                                  o->file ? "window-title" : NULL, o->file,
                                                   NULL);
           gegl_node_connect_from (output, "input", gegl_node_get_output_proxy (gegl, "output"), "output");
           gegl_node_process (output);
-          g_object_unref (output);
           g_main_loop_run (g_main_loop_new (NULL, TRUE));
+          g_object_unref (output);
         }
         break;
       case GEGL_RUN_MODE_XML:



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