summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-11-09 20:51:18 +0100
committerStef Walter <stefw@gnome.org>2013-11-10 22:44:12 +0100
commite8cc0966d4a2fb3cf059122b4a4b9479e25604e4 (patch)
treece1ed2af51e7da300641be1f997498d2e0483f9a /tests
parentae1764b4e0dd33d55fac8a5329b0c5d45c4c66fd (diff)
thread-test: Fix leaks in tests
This is a test of deprecated functionality and its age is showing. Doesn't actually do what it says. But fix leaks anyway. https://bugzilla.gnome.org/show_bug.cgi?id=711751
Diffstat (limited to 'tests')
-rw-r--r--tests/thread-test.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/thread-test.c b/tests/thread-test.c
index eeb96869a..17ac41f7b 100644
--- a/tests/thread-test.c
+++ b/tests/thread-test.c
@@ -390,6 +390,11 @@ main (int argc,
g_thread_use_default_impl = FALSE;
run_all_tests ();
-
+
+ /* XXX: And this shows how silly the above non-native tests are */
+ g_static_rw_lock_free (&test_g_static_rw_lock_lock);
+ g_static_rec_mutex_free (&test_g_static_rec_mutex_mutex);
+ g_static_private_free (&test_g_static_private_private2);
+
return 0;
}