actor: Make set_flags() safe from unrefs
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 29 Jul 2010 16:00:24 +0000 (17:00 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 29 Jul 2010 16:00:24 +0000 (17:00 +0100)
commit0736cb73230c6f2e39b7186770f7405f4dda228e
tree5d48f70b142f259d30442aae03d7e6296f0e6517
parent6f737a5f5a107cc728a9be59d79e9213dfffd026
actor: Make set_flags() safe from unrefs

It's possible - though not recommended - that user code causes the
destruction of an actor in one of the notification handlers for
flag-based properties. We should protect the multiple notification
emission with g_object_ref/unref.
clutter/clutter-actor.c