[gnome-settings-daemon] media-keys: Don't leak the key grabber proxy across plugin restarts
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Don't leak the key grabber proxy across plugin restarts
- Date: Fri, 17 Oct 2014 15:26:40 +0000 (UTC)
commit e279c213f573dd039f462833fdcac1d4122bd7cd
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Oct 3 17:47:57 2014 +0200
media-keys: Don't leak the key grabber proxy across plugin restarts
In particular, this fixes multiple calls to on_accelerator_activated()
after stopping and starting the plugin.
https://bugzilla.gnome.org/show_bug.cgi?id=737798
plugins/media-keys/gsd-media-keys-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 39fe789..31045e2 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -2464,6 +2464,8 @@ gsd_media_keys_manager_stop (GsdMediaKeysManager *manager)
priv->keys = NULL;
}
+ g_clear_object (&priv->key_grabber);
+
if (priv->grab_cancellable != NULL) {
g_cancellable_cancel (priv->grab_cancellable);
g_clear_object (&priv->grab_cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]