forked from AuroraMiddleware/gtk
Fix a leak in scroll event compression
We were leaking the last event in a sequence of scroll events.
This commit is contained in:
parent
c13d70479b
commit
0c82aa314c
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user