summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2023-04-16 16:57:48 +0200
committerBenjamin Otte <otte@redhat.com>2023-04-16 19:28:21 +0200
commit27fd0b907dd424a05a85b91ca0eab3a161690009 (patch)
treec91a12be9a8a39c02d07700fd450ef6e2ee46c7e /testsuite
parent62951c72770107e9eb45dd476fda83cb38b84f67 (diff)
downloadgtk+-27fd0b907dd424a05a85b91ca0eab3a161690009.tar.gz
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.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gtk/shortcuts.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/testsuite/gtk/shortcuts.c b/testsuite/gtk/shortcuts.c
index 10a7913faa..f4895c5d2e 100644
--- a/testsuite/gtk/shortcuts.c
+++ b/testsuite/gtk/shortcuts.c
@@ -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]);