summaryrefslogtreecommitdiff
path: root/src/ck-inhibit-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ck-inhibit-manager.c')
-rw-r--r--src/ck-inhibit-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ck-inhibit-manager.c b/src/ck-inhibit-manager.c
index aa9d3c0..19bffc1 100644
--- a/src/ck-inhibit-manager.c
+++ b/src/ck-inhibit-manager.c
@@ -263,10 +263,10 @@ ck_inhibit_manager_remove_lock (CkInhibitManager *manager,
/* Found it! Remove it from the list and unref the object */
priv->inhibit_list = g_list_remove (priv->inhibit_list, inhibit);
- ck_inhibit_remove_lock (inhibit);
g_signal_handlers_disconnect_by_func (inhibit,
G_CALLBACK (cb_changed_event),
manager);
+ ck_inhibit_remove_lock (inhibit);
g_object_unref (inhibit);
return TRUE;
}