diff options
| author | Michael Biebl <biebl@debian.org> | 2015-05-05 17:48:57 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2015-05-05 17:48:57 +0200 |
| commit | f408e27bccfacf347605a8d98649975a68f38a17 (patch) | |
| tree | 654fd6695c31511baf919b1c0870d119a352ed75 /libnm-glib/tests/test-remote-settings-client.c | |
| parent | 2c032d8f1c6292c1338a615e6ec40252889ba85c (diff) | |
Imported Upstream version 1.0.2 upstream/1.0.2
Diffstat (limited to 'libnm-glib/tests/test-remote-settings-client.c')
| -rw-r--r-- | libnm-glib/tests/test-remote-settings-client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libnm-glib/tests/test-remote-settings-client.c b/libnm-glib/tests/test-remote-settings-client.c index 237e287f..a109f8df 100644 --- a/libnm-glib/tests/test-remote-settings-client.c +++ b/libnm-glib/tests/test-remote-settings-client.c @@ -36,6 +36,7 @@ #include "nm-remote-settings.h" #include "common.h" +#include "gsystem-local-alloc.h" static NMTestServiceInfo *sinfo; static NMRemoteSettings *settings = NULL; @@ -63,7 +64,7 @@ add_cb (NMRemoteSettings *s, static void test_add_connection (void) { - NMConnection *connection; + gs_unref_object NMConnection *connection = NULL; NMSettingConnection *s_con; NMSettingWired *s_wired; char *uuid; @@ -256,6 +257,7 @@ test_make_visible (void) break; } } + g_slist_free (list); g_assert (found == TRUE); g_free (path); @@ -298,6 +300,7 @@ test_remove_connection (void) g_assert_cmpint (g_slist_length (list), >, 0); connection = NM_REMOTE_CONNECTION (list->data); + g_slist_free (list); g_assert (connection); g_assert (remote == connection); path = g_strdup (nm_connection_get_path (NM_CONNECTION (connection))); @@ -329,6 +332,7 @@ test_remove_connection (void) g_assert ((gpointer) connection != (gpointer) candidate); g_assert_cmpstr (path, ==, nm_connection_get_path (candidate)); } + g_slist_free (list); g_free (path); g_object_unref (proxy); |