[Xfce4-commits] <xfce4-appfinder:master> Fix segfault when loading default actions.

Nick Schermer noreply at xfce.org
Thu Sep 29 22:40:03 CEST 2011


Updating branch refs/heads/master
         to 7c214714e92593c132241ea32a82fd28fc7ee0f2 (commit)
       from b07bcb298b626bbf78d1e75e43c0c7f908a0d276 (commit)

commit 7c214714e92593c132241ea32a82fd28fc7ee0f2
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Sep 29 22:38:57 2011 +0200

    Fix segfault when loading default actions.

 src/appfinder-actions.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/appfinder-actions.c b/src/appfinder-actions.c
index c2d4620..39e2a8b 100644
--- a/src/appfinder-actions.c
+++ b/src/appfinder-actions.c
@@ -324,7 +324,8 @@ xfce_appfinder_actions_save (XfceAppfinderActions *actions,
   GPtrArray           *array;
   gchar                prop[32];
 
-  g_signal_handler_block (actions->channel, actions->property_watch_id);
+  if (actions->property_watch_id > 0)
+    g_signal_handler_block (actions->channel, actions->property_watch_id);
 
   array = g_ptr_array_new ();
 
@@ -354,7 +355,8 @@ xfce_appfinder_actions_save (XfceAppfinderActions *actions,
 
   xfconf_array_free (array);
 
-  g_signal_handler_unblock (actions->channel, actions->property_watch_id);
+  if (actions->property_watch_id > 0)
+    g_signal_handler_unblock (actions->channel, actions->property_watch_id);
 }
 
 


More information about the Xfce4-commits mailing list