Emmanuele Bassi 21eb49098a script: Fix the memory management
Currently, the memory management in ClutterScript is overly complicated.
The basic design tenet should be:

  - ClutterScript owns a reference on every object it creates

This allows the Script instance to reliably handle the lifetime of the
instances from creation to disposal.

In case of unmerge, the Script instance should destroy any Actor
instance, except for the Stage, and release the reference it owns. The
Stage is special because it's really owned by Clutter itself, and it
should be destroyed explicitly.

When disposing the Script itself, it should just release the reference;
any parented actor, or any InitiallyUnowned instance, will then be
managed by the parent object, as they should, while every GObject
instance will go away, as documented.

This commit is based on a patch by:

  Henrik Hedberg <hhedberg@innologies.fi>

http://bugzilla.clutter-project.org/show_bug.cgi?id=2316
2010-10-19 01:42:19 +01:00
..
2010-09-29 15:55:58 +01:00
2010-09-29 15:55:58 +01:00
2010-10-15 12:40:43 +01:00
2009-01-20 18:47:50 +00:00
2010-10-18 11:26:44 +01:00
2010-06-03 14:10:55 +01:00
2010-03-02 11:12:32 +00:00
2010-10-04 11:30:32 +01:00
2010-09-08 16:41:47 +01:00
2010-10-14 16:23:05 +01:00
2009-07-10 11:38:42 +01:00
2010-10-18 11:26:44 +01:00
2010-09-08 16:41:47 +01:00
2010-09-08 16:41:47 +01:00
2010-10-18 11:26:44 +01:00
2010-10-18 11:26:44 +01:00
2010-02-03 14:38:13 +00:00
2010-02-01 10:40:34 +00:00
2010-03-02 11:12:32 +00:00
2010-10-14 16:23:05 +01:00