forked from AuroraMiddleware/gtk
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:
parent
330ed9d0d8
commit
793d12d70d
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -10933,6 +10933,8 @@ send_focus_change (GtkWidget *widget,
|
||||
|
||||
gdk_event_free (fevent);
|
||||
}
|
||||
|
||||
g_list_free (devices);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user