[Xfce4-commits] <ristretto:master> Fix segfault of exit (check if thumbnailer is still available)

Stephan Arts noreply at xfce.org
Sun Dec 18 10:00:01 CET 2011


Updating branch refs/heads/master
         to 2c76535a89c4a6fde0ba43031eaabdcefbbe1d22 (commit)
       from 9869e30ecba2a64d595e7988daf7ac0149dd499e (commit)

commit 2c76535a89c4a6fde0ba43031eaabdcefbbe1d22
Author: Stephan Arts <stephan at xfce.org>
Date:   Sun Dec 18 09:57:09 2011 +0100

    Fix segfault of exit (check if thumbnailer is still available)

 src/thumbnail_bar.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/thumbnail_bar.c b/src/thumbnail_bar.c
index d6764bf..1051bba 100644
--- a/src/thumbnail_bar.c
+++ b/src/thumbnail_bar.c
@@ -667,7 +667,11 @@ rstto_thumbnail_bar_remove(GtkContainer *container, GtkWidget *child)
 
 	widget_was_visible = GTK_WIDGET_VISIBLE(child);
 
-    rstto_thumbnailer_dequeue_thumbnail (bar->priv->thumbnailer, RSTTO_THUMBNAIL(child));
+    /* Check if there still is a thumbnailer present */
+    if (NULL != bar->priv->thumbnailer)
+    {
+        rstto_thumbnailer_dequeue_thumbnail (bar->priv->thumbnailer, RSTTO_THUMBNAIL(child));
+    }
 
     bar->priv->thumbs = g_list_remove(bar->priv->thumbs, child);
 


More information about the Xfce4-commits mailing list