testsuite: Fix broken test to not unref surfaces twice
authorBenjamin Otte <otte@redhat.com>
Sun, 16 Apr 2023 14:57:48 +0000 (16:57 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 07:26:46 +0000 (09:26 +0200)
commit8178465c1a2adc81513c35d5d0419f092421c174
treea21179ec6a053553895f69244cef96813a164d9e
parent555c7e9ee2398320d138b2e8178418e2b399778f
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.
testsuite/gtk/shortcuts.c