Updating branch refs/heads/master to 7c214714e92593c132241ea32a82fd28fc7ee0f2 (commit) from b07bcb298b626bbf78d1e75e43c0c7f908a0d276 (commit)
commit 7c214714e92593c132241ea32a82fd28fc7ee0f2 Author: Nick Schermer <n...@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); } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits