[Xfce4-commits] <ristretto:ristretto-0.6> Fix segfault when image-quality property is changed

Stephan Arts noreply at xfce.org
Sat May 5 08:46:01 CEST 2012


Updating branch refs/heads/ristretto-0.6
         to c67e31e724c64ce0b84deddc375be0aab07ce183 (commit)
       from f85326c438d2312ff1e9bfd6c6c175903a22e91b (commit)

commit c67e31e724c64ce0b84deddc375be0aab07ce183
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat May 5 08:45:33 2012 +0200

    Fix segfault when image-quality property is changed

 src/image_viewer.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/image_viewer.c b/src/image_viewer.c
index 58e66c4..8ef31ad 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -2794,10 +2794,13 @@ cb_rstto_limit_quality_changed (
     viewer->priv->limit_quality = g_value_get_boolean (
             &val_limit_quality);
 
-    rstto_image_viewer_load_image (
-            viewer,
-            viewer->priv->file,
-            viewer->priv->scale);
+    if ( NULL != viewer->priv->file )
+    {
+        rstto_image_viewer_load_image (
+                viewer,
+                viewer->priv->file,
+                viewer->priv->scale);
+    }
 }
 
 static void


More information about the Xfce4-commits mailing list