[gnome-settings-daemon] plugins: gdk_display_get_device_manager() retval handling
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] plugins: gdk_display_get_device_manager() retval handling
- Date: Tue, 15 Mar 2011 11:59:58 +0000 (UTC)
commit c010d79dd447e5bd60f6bf6a224561cf7604e585
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 15 11:55:50 2011 +0000
plugins: gdk_display_get_device_manager() retval handling
gdk_display_get_device_manager()'s retval is "is owned by GDK and must
not be freed or unreferenced.". We were unreferencing it in
3 separate plugins.
https://bugzilla.redhat.com/show_bug.cgi?id=685020
plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c | 5 -----
plugins/mouse/gsd-mouse-manager.c | 5 -----
plugins/wacom/gsd-wacom-manager.c | 5 -----
3 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
index f62fd2a..6b7f94f 100644
--- a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
@@ -1019,11 +1019,6 @@ gsd_a11y_keyboard_manager_stop (GsdA11yKeyboardManager *manager)
g_debug ("Stopping a11y_keyboard manager");
- if (p->device_manager != NULL) {
- g_object_unref (p->device_manager);
- p->device_manager = NULL;
- }
-
if (p->status_icon) {
gtk_status_icon_set_visible (p->status_icon, FALSE);
p->status_icon = NULL;
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 0d85e74..a647b9a 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -1011,11 +1011,6 @@ gsd_mouse_manager_stop (GsdMouseManager *manager)
g_debug ("Stopping mouse manager");
- if (p->device_manager != NULL) {
- g_object_unref (p->device_manager);
- p->device_manager = NULL;
- }
-
if (p->mouse_settings != NULL) {
g_object_unref (p->mouse_settings);
p->mouse_settings = NULL;
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index cbb6fd3..0ccfde6 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -596,11 +596,6 @@ gsd_wacom_manager_stop (GsdWacomManager *manager)
g_debug ("Stopping wacom manager");
- if (p->device_manager != NULL) {
- g_object_unref (p->device_manager);
- p->device_manager = NULL;
- }
-
if (p->wacom_settings != NULL) {
g_object_unref (p->wacom_settings);
p->wacom_settings = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]