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:
Colin Walters 2014-04-12 13:26:29 -04:00
parent af1772b642
commit 2d96503898

View File

@ -2183,10 +2183,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
G_APP_INFO (info), G_APP_INFO (info),
launched_files); launched_files);
if (sn_id) if (sn_id)
{ envp = g_environ_setenv (envp, "DESKTOP_STARTUP_ID", sn_id, TRUE);
envp = g_environ_setenv (envp, "DESKTOP_STARTUP_ID", sn_id, TRUE);
g_free (sn_id);
}
} }
g_list_free_full (launched_files, g_object_unref); g_list_free_full (launched_files, g_object_unref);