mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
threadpool test: Don't leak the thread pool
Detected by AddressSanitizer. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -295,6 +295,7 @@ test_thread_sort (gboolean sort)
|
||||
|
||||
g_assert (g_thread_pool_get_max_threads (pool) == max_threads);
|
||||
g_assert (g_thread_pool_get_num_threads (pool) == g_thread_pool_get_max_threads (pool));
|
||||
g_thread_pool_free (pool, TRUE, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user