summaryrefslogtreecommitdiff
path: root/src/caja-window-menus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-window-menus.c')
-rw-r--r--src/caja-window-menus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/caja-window-menus.c b/src/caja-window-menus.c
index d0fc2254..f6691876 100644
--- a/src/caja-window-menus.c
+++ b/src/caja-window-menus.c
@@ -98,8 +98,11 @@ bookmark_holder_new (CajaBookmark *bookmark,
static void
bookmark_holder_free (BookmarkHolder *bookmark_holder)
{
+ if (g_signal_handler_is_connected(bookmark_holder->bookmark,
+ bookmark_holder->changed_handler_id)){
g_signal_handler_disconnect (bookmark_holder->bookmark,
- bookmark_holder->changed_handler_id);
+ bookmark_holder->changed_handler_id);
+ }
g_object_unref (bookmark_holder->bookmark);
g_free (bookmark_holder);
}