mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
gdkevents: Free motion events discarded by motion compression
Those should be freed together with their list link.
This commit is contained in:
parent
73e799474a
commit
cb6b5e4017
@ -295,6 +295,7 @@ _gdk_event_queue_handle_motion_compression (GdkDisplay *display)
|
|||||||
while (pending_motions && pending_motions->next != NULL)
|
while (pending_motions && pending_motions->next != NULL)
|
||||||
{
|
{
|
||||||
GList *next = pending_motions->next;
|
GList *next = pending_motions->next;
|
||||||
|
gdk_event_free (pending_motions->data);
|
||||||
display->queued_events = g_list_delete_link (display->queued_events,
|
display->queued_events = g_list_delete_link (display->queued_events,
|
||||||
pending_motions);
|
pending_motions);
|
||||||
pending_motions = next;
|
pending_motions = next;
|
||||||
|
Loading…
Reference in New Issue
Block a user