[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 04/13] qom: delete properties before calling ins
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [RFC PATCH 04/13] qom: delete properties before calling instance_finalize |
Date: |
Wed, 11 Jun 2014 14:19:27 +0200 |
This ensures that the children's unparent callback will still
have a usable parent.
Signed-off-by: Paolo Bonzini <address@hidden>
---
qom/object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qom/object.c b/qom/object.c
index 69a95d6..780aaa8 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -407,8 +407,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) {
--
1.8.3.1
[Qemu-devel] [RFC PATCH 04/13] qom: delete properties before calling instance_finalize,
Paolo Bonzini <=
[Qemu-devel] [RFC PATCH 11/13] memory: MemoryRegion: Add container and addr props, Paolo Bonzini, 2014/06/11
[Qemu-devel] [RFC PATCH 07/13] memory: MemoryRegion: use /machine as default owner, Paolo Bonzini, 2014/06/11
[Qemu-devel] [RFC PATCH 08/13] memory: MemoryRegion: rename parent to container, Paolo Bonzini, 2014/06/11
[Qemu-devel] [RFC PATCH 12/13] memory: MemoryRegion: Add may-overlap and priority props, Paolo Bonzini, 2014/06/11
[Qemu-devel] [RFC PATCH 13/13] memory: MemoryRegion: Add size property, Paolo Bonzini, 2014/06/11