gfile: Fix leak in g_file_query_default_handler()

Add missing `g_free (uri_scheme)` to fix leak when `uri_scheme[0]`
is equal to `\0`.
This commit is contained in:
Ondrej Holy 2019-01-28 15:18:37 +01:00
parent 140b82083f
commit 0a1730d7ea

View File

@ -6851,6 +6851,8 @@ g_file_query_default_handler (GFile *file,
if (appinfo != NULL)
return appinfo;
}
else
g_free (uri_scheme);
info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,