[Goodies-commits] r3229 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Thu Sep 13 23:28:45 CEST 2007


Author: stephan
Date: 2007-09-13 21:28:45 +0000 (Thu, 13 Sep 2007)
New Revision: 3229

Modified:
   ristretto/trunk/src/picture_viewer.c
Log:
Fix critical warning


Modified: ristretto/trunk/src/picture_viewer.c
===================================================================
--- ristretto/trunk/src/picture_viewer.c	2007-09-13 21:08:52 UTC (rev 3228)
+++ ristretto/trunk/src/picture_viewer.c	2007-09-13 21:28:45 UTC (rev 3229)
@@ -1,6 +1,4 @@
 /*
-        g_object_unref(viewer->priv->src_pixbuf);
-        viewer->priv->src_pixbuf = NULL;
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 2 of the License, or
@@ -703,7 +701,8 @@
     if(entry)
     {
         viewer->priv->src_pixbuf = rstto_navigator_entry_get_pixbuf(entry);
-        g_object_ref(viewer->priv->src_pixbuf);
+        if (viewer->priv->src_pixbuf)
+            g_object_ref(viewer->priv->src_pixbuf);
     }
 
     if(GTK_WIDGET_REALIZED(widget))




More information about the Goodies-commits mailing list