projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af1772b
)
gdesktopappinfo: Don't double free sn_id
author
Colin Walters
<walters@verbum.org>
Sat, 12 Apr 2014 17:26:29 +0000
(13:26 -0400)
committer
Colin Walters
<walters@verbum.org>
Sat, 12 Apr 2014 17:26:29 +0000
(13:26 -0400)
Not sure why mclasen added a g_free() in that path, it was just wrong.
We free it correctly later.
gio/gdesktopappinfo.c
patch
|
blob
|
history
diff --git
a/gio/gdesktopappinfo.c
b/gio/gdesktopappinfo.c
index
3d5fe01
..
f7208d3
100644
(file)
--- a/
gio/gdesktopappinfo.c
+++ b/
gio/gdesktopappinfo.c
@@
-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);