mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
tests: Various minor leak fixes in the GIO tests
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user