projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83a14d1
)
mainloop-test: Fix leaks in tests
author
Stef Walter
<stefw@gnome.org>
Sat, 9 Nov 2013 19:30:11 +0000
(20:30 +0100)
committer
Stef Walter
<stefw@gnome.org>
Sun, 10 Nov 2013 21:43:25 +0000
(22:43 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711751
tests/mainloop-test.c
patch
|
blob
|
history
diff --git
a/tests/mainloop-test.c
b/tests/mainloop-test.c
index
14245b7
..
0ac6942
100644
(file)
--- 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;
}