mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gdesktopappinfo: Don't double free sn_id
Not sure why mclasen added a g_free() in that path, it was just wrong. We free it correctly later.
This commit is contained in:
@@ -2183,10 +2183,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
|
||||
G_APP_INFO (info),
|
||||
launched_files);
|
||||
if (sn_id)
|
||||
{
|
||||
envp = g_environ_setenv (envp, "DESKTOP_STARTUP_ID", sn_id, TRUE);
|
||||
g_free (sn_id);
|
||||
}
|
||||
envp = g_environ_setenv (envp, "DESKTOP_STARTUP_ID", sn_id, TRUE);
|
||||
}
|
||||
|
||||
g_list_free_full (launched_files, g_object_unref);
|
||||
|
Reference in New Issue
Block a user