[gnome-settings-daemon] wacom: Plug GsdWacomDevice leak



commit b3899273cfff8bba6e82cb25ceb46761e1eee81a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 22 21:29:11 2016 +0100

    wacom: Plug GsdWacomDevice leak
    
    We fetch the current pad device from the button-mapping OSD window through
    g_object_get(), which adds new references to GObjects.

 plugins/wacom/gsd-wacom-manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 2604b87..d4677ca 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -1512,9 +1512,12 @@ filter_button_events (XEvent          *xevent,
 
                if (osd_window_device && device == osd_window_device && edition_mode) {
                        osd_window_update_viewable (manager, wbutton, dir, xiev);
+                       g_object_unref (osd_window_device);
 
                        return GDK_FILTER_REMOVE;
                }
+
+               g_object_unref (osd_window_device);
        }
 
        /* Update OSD window if shown */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]