[tracker/encoding-detection] tests, libtracker-common: Fixed memory-leak and some corrections
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/encoding-detection] tests, libtracker-common: Fixed memory-leak and some corrections
- Date: Thu, 31 Mar 2011 11:39:17 +0000 (UTC)
commit 5f4f261d16a30a42a99e10781c73ecf06fab7582
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Mar 31 13:38:48 2011 +0200
tests, libtracker-common: Fixed memory-leak and some corrections
tests/libtracker-common/tracker-utils-test.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/tests/libtracker-common/tracker-utils-test.c b/tests/libtracker-common/tracker-utils-test.c
index 8180e1b..f1d5ae0 100644
--- a/tests/libtracker-common/tracker-utils-test.c
+++ b/tests/libtracker-common/tracker-utils-test.c
@@ -39,17 +39,7 @@ test_encoding_guessing ()
output = tracker_encoding_guess (g_mapped_file_get_contents (file),
g_mapped_file_get_length (file));
-#ifdef HAVE_MEEGOTOUCH
-# ifdef HAVE_ENCA
- g_assert_cmpstr (output, ==, "CP1251");
-# else
- g_assert_cmpstr (output, ==, "UTF-8");
-# endif
-#elifdef HAVE_ENCA
- g_assert_cmpstr (output, ==, "CP1251");
-#else
g_assert_cmpstr (output, ==, "UTF-8");
-#endif
#if GLIB_CHECK_VERSION(2,22,0)
g_mapped_file_unref (file);
@@ -57,6 +47,8 @@ test_encoding_guessing ()
g_mapped_file_free (file);
#endif
+ g_free (prefix);
+ g_free (filen);
g_free (output);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]