test/wayland: Don't double-free GThreads

g_thread_join() frees the thread object, so don't use g_autoptr
(Gthread) when they will all be joined.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3234>
This commit is contained in:
Jonas Ådahl 2023-09-01 23:28:41 +02:00 committed by Marge Bot
parent 06606b0b8e
commit 4a600e1031
2 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ meta_test_wayland_client_indirect_self_terminate (void)
{
g_autoptr (MetaWaylandClient) client = NULL;
g_autoptr (GError) error = NULL;
g_autoptr (GThread) thread = NULL;
GThread *thread;
int fd;
gboolean client_destroyed = FALSE;
@ -116,7 +116,7 @@ meta_test_wayland_client_indirect_destroy (void)
DestroyTestData data;
g_autoptr (MetaWaylandClient) client = NULL;
g_autoptr (GError) error = NULL;
g_autoptr (GThread) thread = NULL;
GThread *thread;
int fd;
gboolean client_destroyed = FALSE;

View File

@ -765,9 +765,9 @@ wayland_registry_filter (void)
g_autoptr (MetaWaylandClient) client1 = NULL;
g_autoptr (MetaWaylandClient) client2 = NULL;
g_autoptr (MetaWaylandClient) client3 = NULL;
g_autoptr (GThread) thread1 = NULL;
g_autoptr (GThread) thread2 = NULL;
g_autoptr (GThread) thread3 = NULL;
GThread *thread1;
GThread *thread2;
GThread *thread3;
gboolean client1_destroyed = FALSE;
gboolean client2_destroyed = FALSE;
gboolean client3_destroyed = FALSE;