summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorGarrett Regier <alias301@gmail.com>2011-03-19 09:09:27 -0700
committerMatthias Clasen <mclasen@redhat.com>2011-03-21 10:37:10 -0400
commit793d12d70d171d2b50deb7e272612a3af571f677 (patch)
tree6832d3efb2eff19aa83dc31574515c8926b69394 /gdk/gdkwindow.c
parent330ed9d0d8f9ff62408a18071a44f63c365a4683 (diff)
downloadgtk+-793d12d70d171d2b50deb7e272612a3af571f677.tar.gz
Fix leaking calls to gdk_device_manager_list_devices()
gdk_device_manager_list_devices() returns a newly allocated list. https://bugzilla.gnome.org/show_bug.cgi?id=645234
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 8318b99e91..8341106d22 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8903,6 +8903,8 @@ gdk_window_set_source_events (GdkWindow *window,
gdk_window_set_device_events (window, device, event_mask);
}
+ g_list_free (devices);
+
/* Update accounting */
if (G_UNLIKELY (!window->source_event_masks))
window->source_event_masks = g_hash_table_new (NULL, NULL);