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:
Benjamin Otte 2023-04-16 16:57:48 +02:00 committed by Matthias Clasen
parent 555c7e9ee2
commit 8178465c1a

View File

@ -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]);