projects
/
tweakr
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
806460e
)
Stop using memory I don't own. Thanks Alberto Mardegan.
author
Salvatore Iovene
<salvatore@iovene.com>
Mon, 7 Dec 2009 06:16:06 +0000
(08:16 +0200)
committer
Salvatore Iovene
<salvatore@iovene.com>
Mon, 7 Dec 2009 06:16:06 +0000
(08:16 +0200)
modules/maemo-tweaks-desktop.c
patch
|
blob
|
history
diff --git
a/modules/maemo-tweaks-desktop.c
b/modules/maemo-tweaks-desktop.c
index
8019573
..
541c852
100644
(file)
--- a/
modules/maemo-tweaks-desktop.c
+++ b/
modules/maemo-tweaks-desktop.c
@@
-221,7
+221,7
@@
maemo_tweaks_desktop_section_dispose (GObject *obj)
static void _save (MaemoTweaksSection *section)
{
- gchar *argv[2];
+ gchar *argv[3];
gint active;
active = hildon_picker_button_get_active
@@
-230,6
+230,7
@@
static void _save (MaemoTweaksSection *section)
argv[0] = g_strdup ("/usr/bin/maemo-tweaks-desktop-save");
argv[1] = g_strdup_printf ("%d", snap_values[active]);
+ argv[2] = NULL;
g_spawn_sync ("/home/user", argv, NULL,
G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL,