[cheese] gconf: duplicate effect string before free. Fixes bug 584186
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Subject: [cheese] gconf: duplicate effect string before free. Fixes bug 584186
- Date: Sun, 14 Jun 2009 06:03:17 -0400 (EDT)
commit 800bfae8eb6e76a808e46b222b876aa2f2802ed3
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Sun Jun 14 11:50:02 2009 +0200
gconf: duplicate effect string before free. Fixes bug 584186
The first item of the effect string was being accessed after freed.
Duplicate it to avoid this. Fixes bug 584186
src/cheese-gconf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-gconf.c b/src/cheese-gconf.c
index 2e058d5..36b51e6 100644
--- a/src/cheese-gconf.c
+++ b/src/cheese-gconf.c
@@ -91,7 +91,7 @@ cheese_gconf_get_property (GObject *object, guint prop_id, GValue *value,
}
}
if (effects == NULL)
- effects = str;
+ effects = g_strdup (str);
else
effects = g_strjoin (",", effects, str, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]