summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-12-10 10:46:29 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2010-12-11 00:41:14 +0000
commit528813323367a3a8f4ea42ef765d640c664e6752 (patch)
treec1752f56d7a385189fe25672c474516b264d2bc3
parenta11c03983bf79065082db2b899424422c5706a7c (diff)
downloadlibgdata-528813323367a3a8f4ea42ef765d640c664e6752.tar.gz
calendar: Fix memory leaks in the calendar test suite
-rw-r--r--gdata/tests/calendar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdata/tests/calendar.c b/gdata/tests/calendar.c
index 49dbc623..1fc9ec49 100644
--- a/gdata/tests/calendar.c
+++ b/gdata/tests/calendar.c
@@ -72,6 +72,8 @@ test_authentication (void)
g_assert (gdata_service_is_authenticated (service) == TRUE);
g_assert_cmpstr (gdata_service_get_username (service), ==, USERNAME);
g_assert_cmpstr (gdata_service_get_password (service), ==, PASSWORD);
+
+ g_object_unref (service);
}
static void
@@ -445,6 +447,8 @@ test_xml_recurrence (gconstpointer service)
g_assert_cmpstr (id, ==, "g5928e82rrch95b25f8ud0dlsg");
g_assert_cmpstr (uri, ==, "http://www.google.com/calendar/feeds/libgdata.test@googlemail.com/private/full/g5928e82rrch95b25f8ud0dlsg");
+ g_free (id);
+ g_free (uri);
g_object_unref (event);
}
@@ -629,6 +633,7 @@ test_acls_insert_rule (gconstpointer service)
g_object_unref (rule);
g_object_unref (new_rule);
+ g_object_unref (calendar);
}
static void
@@ -723,6 +728,7 @@ test_acls_delete_rule (gconstpointer service)
g_clear_error (&error);
g_object_unref (rule);
+ g_object_unref (calendar);
}
int