mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
testsuite: Fix broken test to not unref surfaces twice
The test doesn't hold 2 references, it holds only one. The reason one unref can cause a leak is that some backends - like X11 - only destroy the surface once the DestroyNotify event from the X server has come in.
This commit is contained in:
parent
555c7e9ee2
commit
8178465c1a
@ -360,7 +360,6 @@ test_trigger_trigger (void)
|
||||
}
|
||||
|
||||
gdk_surface_destroy (surface);
|
||||
g_object_unref (surface);
|
||||
|
||||
g_object_unref (trigger[0]);
|
||||
g_object_unref (trigger[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user