Avoid an X error

We are getting the mime data destroy notify called when we
destroy the surface in finalize. Trying to set the XSync counters
at this time is a) pointless and b) yielding an X error because
the counters have already been destroyed.
To avoid this, unhook the damage tracking before destroying
the surface.

https://bugzilla.gnome.org/show_bug.cgi?id=760188
This commit is contained in:
Matthias Clasen 2016-01-08 13:48:10 -05:00
parent 4d60b5b10c
commit b94f30bb64

View File

@ -1331,6 +1331,8 @@ gdk_x11_window_destroy (GdkWindow *window,
if (toplevel)
gdk_toplevel_x11_free_contents (GDK_WINDOW_DISPLAY (window), toplevel);
unhook_surface_changed (window);
if (impl->cairo_surface)
{
cairo_surface_finish (impl->cairo_surface);