[glib] mainloop-test: Fix leaks in tests
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] mainloop-test: Fix leaks in tests
- Date: Sun, 10 Nov 2013 21:51:29 +0000 (UTC)
commit ae1764b4e0dd33d55fac8a5329b0c5d45c4c66fd
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 9 20:30:11 2013 +0100
mainloop-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
tests/mainloop-test.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/mainloop-test.c b/tests/mainloop-test.c
index 14245b7..0ac6942 100644
--- a/tests/mainloop-test.c
+++ b/tests/mainloop-test.c
@@ -190,6 +190,7 @@ adder_thread (gpointer data)
g_mutex_unlock (&context_array_mutex);
cleanup_crawlers (context);
+ g_main_context_unref (context);
return NULL;
}
@@ -430,5 +431,8 @@ main (int argc,
g_main_loop_run (main_loop);
g_main_loop_unref (main_loop);
+ g_ptr_array_unref (crawler_array);
+ g_ptr_array_unref (context_array);
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]