[glib/wip/gcleanup: 49/79] threadpool-test: Cleanup memory in test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 49/79] threadpool-test: Cleanup memory in test
- Date: Sun, 10 Nov 2013 15:23:38 +0000 (UTC)
commit 033a2ed110277f9daaab9aea9db53b3e523bde5b
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 c640568..e4fd28e 100644
--- a/tests/threadpool-test.c
+++ b/tests/threadpool-test.c
@@ -301,6 +301,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
@@ -455,6 +456,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]