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)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Apr 2023 17:28:21 +0000 (19:28 +0200)
commit27fd0b907dd424a05a85b91ca0eab3a161690009
treec91a12be9a8a39c02d07700fd450ef6e2ee46c7e
parent62951c72770107e9eb45dd476fda83cb38b84f67
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