Fix a leak in scroll event compression

We were leaking the last event in a sequence
of scroll events.
This commit is contained in:
Matthias Clasen 2020-08-06 19:31:08 -04:00
parent c13d70479b
commit 0c82aa314c

View File

@ -702,6 +702,8 @@ gdk_event_queue_handle_scroll_compression (GdkDisplay *display)
g_queue_delete_link (&display->queued_events, scrolls);
g_queue_push_tail (&display->queued_events, event);
gdk_event_unref (old_event);
}
if (g_queue_get_length (&display->queued_events) == 1 &&