[glib/wip/gcleanup] thread-test: Fix leaks in tests



commit 3001caecd745c9d3670b16a345b3dbd20e0048bb
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 9 20:51:18 2013 +0100

    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.

 tests/thread-test.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tests/thread-test.c b/tests/thread-test.c
index eeb9686..17ac41f 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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]