[glib/wip/gcleanup: 60/106] threadpool-test: Cleanup memory in test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 60/106] threadpool-test: Cleanup memory in test
- Date: Mon, 11 Nov 2013 08:00:02 +0000 (UTC)
commit 81e796b72da8340c797a7cbbd268ab3dec174f9f
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 9 20:53:48 2013 +0100
threadpool-test: Cleanup memory in test
https://bugzilla.gnome.org/show_bug.cgi?id=711744
tests/threadpool-test.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/threadpool-test.c b/tests/threadpool-test.c
index 1c8aa06..2949f1b 100644
--- a/tests/threadpool-test.c
+++ b/tests/threadpool-test.c
@@ -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_CLEANUP (pool, free_thread_pool);
}
static void
@@ -449,6 +450,8 @@ test_check_start_and_stop (gpointer user_data)
return continue_timeout;
}
+G_CLEANUP_DEFINE;
+
int
main (int argc, char *argv[])
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]