From: <svn...@op...> - 2009-04-23 11:47:00
|
Author: bellmich Date: Thu Apr 23 13:46:50 2009 New Revision: 1068 URL: http://libsyncml.opensync.org/changeset/1068 Log: fixed memory leaks Modified: trunk/tests/check_ds.c Modified: trunk/tests/check_ds.c ============================================================================== --- trunk/tests/check_ds.c Mon Apr 20 17:14:23 2009 (r1067) +++ trunk/tests/check_ds.c Thu Apr 23 13:46:50 2009 (r1068) @@ -212,15 +212,17 @@ smlAssert(thread); - + smlThreadStop(thread->thread); + g_source_destroy(thread->data_source); g_source_destroy(thread->session_source); - - smlThreadStop(thread->thread); + g_source_unref(thread->data_source); + g_source_unref(thread->session_source); smlThreadFree(thread->thread); g_free(thread->functions); + g_free(thread->data_functions); g_main_context_unref(thread->context); g_main_context_unref(thread->context); |