script: Copy the JSON node in PropertyInfo
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 5 Jan 2010 10:55:28 +0000 (10:55 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 5 Jan 2010 10:55:28 +0000 (10:55 +0000)
commit2aa9d7bdc78703fc9a6354d2e54f880fde96db39
treeb18b9ec4f7393f18c9a0e359bac23b3d2d59bf5a
parent10963d1ae03920e202ccbd0107854f489117f89b
script: Copy the JSON node in PropertyInfo

PropertyInfo should store a copy of the JsonNodes it references, so
that property_info_free() can safely dispose them, and we can reference
values across different UI definition data.

The implicit timeline parsing code is not copying the JsonNode; this
leads to a double free in some cases, which is masked by the GSlice
allocator and produces a heap corruption later on.
clutter/clutter-script-parser.c