[Xfce4-commits] <ristretto:ristretto-0.3> Cleanup preferences-dialog and fix segfault

Stephan Arts noreply at xfce.org
Fri Apr 27 20:40:04 CEST 2012


Updating branch refs/heads/ristretto-0.3
         to 2b9b98ef5f463c57b99e213d7ed4e86d59e615d8 (commit)
       from 339a2db2ed32f548bb55740023ea14f65ed07352 (commit)

commit 2b9b98ef5f463c57b99e213d7ed4e86d59e615d8
Author: Stephan Arts <stephan at xfce.org>
Date:   Fri Apr 27 20:07:12 2012 +0200

    Cleanup preferences-dialog and fix segfault

 src/main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main.c b/src/main.c
index 5873744..2489d7c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -162,6 +162,8 @@ main(int argc, char **argv)
         GDK_THREADS_ENTER();
         gtk_main();
         GDK_THREADS_LEAVE();
+
+        g_object_unref (image_list);
     }
     else
     {
@@ -170,10 +172,10 @@ main(int argc, char **argv)
         {
             rstto_launch_help ();
         }
+        gtk_widget_destroy (window);
     }
 
     g_object_unref (settings);
-    g_object_unref (image_list);
 
     xfconf_shutdown();
 


More information about the Xfce4-commits mailing list