summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@openbsd.org>2020-12-04 16:59:43 +0100
committerGitHub <noreply@github.com>2020-12-04 16:59:43 +0100
commit3026d9a18e77fa09ab796385f02651b3ff7beaeb (patch)
treee50d4daaa52ae9f08dac2377e9eaa98dc72dfc27
parent7f6bf32c92890b9ebeac5e1fec092896729c9b9f (diff)
parente8960c0fb789e1ddefe5b4cbfcde4861f7fa3169 (diff)
downloadConsoleKit2-3026d9a18e77fa09ab796385f02651b3ff7beaeb.tar.gz
Merge pull request #123 from rnagy/signal_handling
only disconnect the signal handler after the lock is removed
-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 75bf2f6..3173373 100644
--- a/src/ck-inhibit-manager.c
+++ b/src/ck-inhibit-manager.c
@@ -260,10 +260,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;
}