From: Paolo Bonzini Date: Wed, 11 Jun 2014 09:58:30 +0000 (+0200) Subject: qom: object: delete properties before calling instance_finalize X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~648^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76a6e1cc7cc3ad022e7159b37b291b75bc4615bf;p=sdk%2Femulator%2Fqemu.git qom: object: delete properties before calling instance_finalize This ensures that the children's unparent callback will still have a usable parent. Reviewed-by: Peter Crosthwaite Signed-off-by: Paolo Bonzini --- diff --git a/qom/object.c b/qom/object.c index 0e8267b..f301bc2 100644 --- a/qom/object.c +++ b/qom/object.c @@ -418,8 +418,8 @@ static void object_finalize(void *data) Object *obj = data; TypeImpl *ti = obj->class->type; - object_deinit(obj, ti); object_property_del_all(obj); + object_deinit(obj, ti); g_assert(obj->ref == 0); if (obj->free) {