mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
06606b0b8e
commit
4a600e1031
@ -52,7 +52,7 @@ meta_test_wayland_client_indirect_self_terminate (void)
|
|||||||
{
|
{
|
||||||
g_autoptr (MetaWaylandClient) client = NULL;
|
g_autoptr (MetaWaylandClient) client = NULL;
|
||||||
g_autoptr (GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
g_autoptr (GThread) thread = NULL;
|
GThread *thread;
|
||||||
int fd;
|
int fd;
|
||||||
gboolean client_destroyed = FALSE;
|
gboolean client_destroyed = FALSE;
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ meta_test_wayland_client_indirect_destroy (void)
|
|||||||
DestroyTestData data;
|
DestroyTestData data;
|
||||||
g_autoptr (MetaWaylandClient) client = NULL;
|
g_autoptr (MetaWaylandClient) client = NULL;
|
||||||
g_autoptr (GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
g_autoptr (GThread) thread = NULL;
|
GThread *thread;
|
||||||
int fd;
|
int fd;
|
||||||
gboolean client_destroyed = FALSE;
|
gboolean client_destroyed = FALSE;
|
||||||
|
|
||||||
|
@ -765,9 +765,9 @@ wayland_registry_filter (void)
|
|||||||
g_autoptr (MetaWaylandClient) client1 = NULL;
|
g_autoptr (MetaWaylandClient) client1 = NULL;
|
||||||
g_autoptr (MetaWaylandClient) client2 = NULL;
|
g_autoptr (MetaWaylandClient) client2 = NULL;
|
||||||
g_autoptr (MetaWaylandClient) client3 = NULL;
|
g_autoptr (MetaWaylandClient) client3 = NULL;
|
||||||
g_autoptr (GThread) thread1 = NULL;
|
GThread *thread1;
|
||||||
g_autoptr (GThread) thread2 = NULL;
|
GThread *thread2;
|
||||||
g_autoptr (GThread) thread3 = NULL;
|
GThread *thread3;
|
||||||
gboolean client1_destroyed = FALSE;
|
gboolean client1_destroyed = FALSE;
|
||||||
gboolean client2_destroyed = FALSE;
|
gboolean client2_destroyed = FALSE;
|
||||||
gboolean client3_destroyed = FALSE;
|
gboolean client3_destroyed = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user