mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01: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:
parent
af1772b642
commit
2d96503898
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user