summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2023-04-16 16:57:48 +0200
committerMatthias Clasen <mclasen@redhat.com>2023-04-21 09:26:46 +0200
commit8178465c1a2adc81513c35d5d0419f092421c174 (patch)
treea21179ec6a053553895f69244cef96813a164d9e
parent555c7e9ee2398320d138b2e8178418e2b399778f (diff)
downloadgtk+-8178465c1a2adc81513c35d5d0419f092421c174.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.
-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]);