From 15af9b9b48800603c66224a977c846f58439656c Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Tue, 28 Oct 2008 11:45:04 +0000 Subject: [PATCH] * clutter/clutter-color.c (param_color_set_default): Set the no copy flag when setting the default param spec value to prevent invalid frees. --- ChangeLog | 6 ++++++ clutter/clutter-color.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index d460eb022..64bceef8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-28 Thomas Wood + + * clutter/clutter-color.c (param_color_set_default): Set the no copy + flag when setting the default param spec value to prevent invalid + frees. + 2008-10-27 Neil Roberts Bug 1189 - Backface culling diff --git a/clutter/clutter-color.c b/clutter/clutter-color.c index 45191f3d3..a43738135 100644 --- a/clutter/clutter-color.c +++ b/clutter/clutter-color.c @@ -826,6 +826,7 @@ param_color_set_default (GParamSpec *pspec, GValue *value) { value->data[0].v_pointer = CLUTTER_PARAM_SPEC_COLOR (pspec)->default_value; + value->data[1].v_uint = G_VALUE_NOCOPY_CONTENTS; } static gint