gio/gdesktopappinfo: Free the wrapped argv array on launch failure

We create an array that we never free, ensure this is the case.
The previous commit gives CI a chance to check this with valgrind job.

Found as part of another review:
 - https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2839#note_1524922
This commit is contained in:
Marco Trevisan (Treviño) 2022-10-23 17:10:59 +02:00
parent 37e61d66c3
commit dafd6602dc

View File

@ -2963,6 +2963,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
g_free (sn_id);
g_list_free (launched_uris);
g_clear_pointer (&wrapped_argv, g_strfreev);
goto out;
}