mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 07:08:54 +02:00
Merge branch 'bugfix/appinfo-launch-urilist-leak' into 'master'
gdesktopappinfo: Fix unnecessarily copied and leaked URI list See merge request GNOME/glib!1563
This commit is contained in:
@@ -2727,7 +2727,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
|
|||||||
* internally by expand_macro(), so we need to pass a copy of it instead,
|
* internally by expand_macro(), so we need to pass a copy of it instead,
|
||||||
* and also use that copy to control the exit condition of the loop below.
|
* and also use that copy to control the exit condition of the loop below.
|
||||||
*/
|
*/
|
||||||
dup_uris = g_list_copy (uris);
|
dup_uris = uris;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
GPid pid;
|
GPid pid;
|
||||||
@@ -2864,7 +2864,6 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
|
|||||||
completed = TRUE;
|
completed = TRUE;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
g_list_free (dup_uris);
|
|
||||||
g_strfreev (argv);
|
g_strfreev (argv);
|
||||||
g_strfreev (envp);
|
g_strfreev (envp);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user