tests: Fix a memory leak in spawn-multithreaded

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-03-12 01:18:43 +00:00
parent 8cb44235df
commit 7b004d4052

View File

@ -125,6 +125,7 @@ start_thread (gpointer user_data)
g_test_message ("Created pid: %" G_PID_FORMAT " (ttl %d)", pid, ttl); g_test_message ("Created pid: %" G_PID_FORMAT " (ttl %d)", pid, ttl);
g_main_loop_run (new_main_loop); g_main_loop_run (new_main_loop);
g_main_loop_unref (new_main_loop);
return NULL; return NULL;
} }