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
This commit is contained in:
Garrett Regier 2011-03-19 09:09:27 -07:00 committed by Matthias Clasen
parent 330ed9d0d8
commit 793d12d70d
3 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -2052,6 +2052,8 @@ text_view_visibility_notify_event (GtkWidget *text_view,
set_cursor_if_appropriate (about, GTK_TEXT_VIEW (text_view), dev, bx, by);
}
g_list_free (devices);
return FALSE;
}

View File

@ -10933,6 +10933,8 @@ send_focus_change (GtkWidget *widget,
gdk_event_free (fevent);
}
g_list_free (devices);
}
static void