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

Stephan Arts noreply at xfce.org
Fri Apr 27 20:08:01 CEST 2012


Updating branch refs/heads/master
         to 93628bb451849fbdd950abbc7eaed890c07ca4e7 (commit)
       from 061a7bdda702bc908ebe90cc96d4837da781f8b8 (commit)

commit 93628bb451849fbdd950abbc7eaed890c07ca4e7
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 1294e63..cdc990a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -163,6 +163,8 @@ main(int argc, char **argv)
         GDK_THREADS_ENTER();
         gtk_main();
         GDK_THREADS_LEAVE();
+
+        g_object_unref (image_list);
     }
     else
     {
@@ -175,10 +177,10 @@ main(int argc, char **argv)
                     "preferences",
                     NULL);
         }
+        gtk_widget_destroy (window);
     }
 
     g_object_unref (settings);
-    g_object_unref (image_list);
 
     xfconf_shutdown();
 


More information about the Xfce4-commits mailing list