mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +01: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:
parent
5b476d0d9c
commit
d499c53158
@ -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_max_threads (pool) == max_threads);
|
||||||
g_assert (g_thread_pool_get_num_threads (pool) == g_thread_pool_get_max_threads (pool));
|
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
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user