tests: Various minor leak fixes in the GIO tests

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall
2018-06-27 09:57:21 +01:00
parent 68526565f4
commit 93b519b104
10 changed files with 31 additions and 4 deletions

View File

@@ -547,7 +547,8 @@ test_uri_query_info (void)
GBytes *data;
GFile *file;
GFileInfo *info;
const char *content_type, *mime_type;
const char *content_type;
gchar *mime_type = NULL;
const char *fs_type;
gboolean readonly;
@@ -573,6 +574,7 @@ test_uri_query_info (void)
mime_type = g_content_type_get_mime_type (content_type);
g_assert (mime_type);
g_assert_cmpstr (mime_type, ==, "text/plain");
g_free (mime_type);
g_object_unref (info);