Commit f8bbbbf6 authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Matthias Clasen

gdk: Don't leak discarded window state event

When compressing window state events, we didn't free the discarded
event after removing it from the queue, causing us to leak it. This
commit makes sure to free the discarded event after unqueuing it.
parent 1d190659
......@@ -2201,6 +2201,7 @@ _gdk_set_window_state (GdkWindow *window,
old = window->old_state;
_gdk_event_queue_remove_link (display, pending_event_link);
gdk_event_free (pending_event_link->data);
g_list_free_1 (pending_event_link);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment