Commit fa66b271 authored by Ben Gamari's avatar Ben Gamari Committed by Matthias Clasen

gdkwindow-x11: Ensure that extended update counter is freed

I believe this lead to rampant leakage of SyncCounters by
gnome-terminal.

https://bugzilla.gnome.org/show_bug.cgi?id=760188
parent a45b1d1e
......@@ -1297,7 +1297,10 @@ gdk_toplevel_x11_free_contents (GdkDisplay *display,
{
XSyncDestroyCounter (GDK_DISPLAY_XDISPLAY (display),
toplevel->update_counter);
XSyncDestroyCounter (GDK_DISPLAY_XDISPLAY (display),
toplevel->extended_update_counter);
toplevel->update_counter = None;
toplevel->extended_update_counter = None;
toplevel->current_counter_value = 0;
}
......
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