summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-desktop-link.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-desktop-link.c')
-rw-r--r--libcaja-private/caja-desktop-link.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcaja-private/caja-desktop-link.c b/libcaja-private/caja-desktop-link.c
index dfb1a54d..d695af6d 100644
--- a/libcaja-private/caja-desktop-link.c
+++ b/libcaja-private/caja-desktop-link.c
@@ -460,8 +460,11 @@ desktop_link_finalize (GObject *object)
if (link->details->signal_handler != 0)
{
- g_signal_handler_disconnect (link->details->signal_handler_obj,
- link->details->signal_handler);
+ if (g_signal_handler_is_connected(link->details->signal_handler_obj,
+ link->details->signal_handler)){
+ g_signal_handler_disconnect (link->details->signal_handler_obj,
+ link->details->signal_handler);
+ }
}
if (link->details->icon_file != NULL)