[geocode-glib] test-geouri: fix memory leaks
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] test-geouri: fix memory leaks
- Date: Fri, 9 May 2014 19:06:34 +0000 (UTC)
commit 227618ca6ba81646506ddfc879f41bbe91bbaf07
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Thu May 8 12:15:19 2014 +0200
test-geouri: fix memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=727861
geocode-glib/test-geouri.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/test-geouri.c b/geocode-glib/test-geouri.c
index 1163564..59b4b2e 100644
--- a/geocode-glib/test-geouri.c
+++ b/geocode-glib/test-geouri.c
@@ -89,11 +89,12 @@ test_valid_uri (void)
if (uris[i].valid) {
g_assert (success);
g_assert (error == NULL);
- g_object_unref (loc);
} else {
g_assert (!success);
g_assert (error != NULL);
+ g_error_free (error);
}
+ g_object_unref (loc);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]