diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index 26bc53bd5..869bb8feb 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -2886,7 +2886,7 @@ g_desktop_app_info_launch_uris_with_dbus (GDesktopAppInfo *info, GAppLaunchContext *launch_context) { GList *ruris = uris; - g_autofree char *app_id = NULL; + char *app_id = NULL; g_return_val_if_fail (info != NULL, FALSE); @@ -2905,6 +2905,8 @@ g_desktop_app_info_launch_uris_with_dbus (GDesktopAppInfo *info, if (ruris != uris) g_list_free_full (ruris, g_free); + g_free (app_id); + return TRUE; } diff --git a/gio/gdocumentportal.c b/gio/gdocumentportal.c index 3e85bd22c..56378b1e6 100644 --- a/gio/gdocumentportal.c +++ b/gio/gdocumentportal.c @@ -203,7 +203,7 @@ g_document_portal_add_documents (GList *uris, { const char *uri = l->data; int idx = -1; - g_autofree char *path = NULL; + char *path = NULL; path = g_filename_from_uri (uri, NULL, NULL); if (path != NULL) @@ -221,6 +221,8 @@ g_document_portal_add_documents (GList *uris, } } + g_free (path); + if (idx != -1) g_variant_builder_add (&builder, "h", idx); else