diff --git a/clutter/clutter-script-parser.c b/clutter/clutter-script-parser.c index 8fa7ddd94..2814c3a8f 100644 --- a/clutter/clutter-script-parser.c +++ b/clutter/clutter-script-parser.c @@ -2000,7 +2000,7 @@ _clutter_script_construct_object (ClutterScript *script, else { GList *properties = oinfo->properties; - GParameter *parameters = (GParameter *) (void *) params->data; + GParameter *parameters; /* every other object: first, we get the construction parameters */ oinfo->properties = @@ -2010,6 +2010,7 @@ _clutter_script_construct_object (ClutterScript *script, properties, ¶ms); + parameters = (GParameter *) (void *) params->data; oinfo->object = g_object_newv (oinfo->gtype, params->len, parameters);