[geocode-glib] test-gcglib: Fix a couple of memory leaks in the tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] test-gcglib: Fix a couple of memory leaks in the tests
- Date: Fri, 6 Jan 2017 23:12:56 +0000 (UTC)
commit a5f1e32374da1a6eace865509e5587ca1453afbf
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Oct 13 11:55:36 2016 +0100
test-gcglib: Fix a couple of memory leaks in the tests
https://bugzilla.gnome.org/show_bug.cgi?id=756311
geocode-glib/test-gcglib.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index 9db1584..e6f4165 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -554,7 +554,7 @@ test_resolve_json (void)
g_object_get (place, tests[i].prop, &value, NULL);
g_assert_cmpstr (value, ==, tests[i].value);
g_free (value);
- g_list_free (list);
+ g_list_free_full (list, (GDestroyNotify) g_object_unref);
}
}
@@ -596,6 +596,7 @@ test_search_json (void)
g_list_free_full (list, (GDestroyNotify) g_object_unref);
g_assert (found);
+ g_free (contents);
}
static GeocodeLocation *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]