projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33cbb2c
)
qom: object: delete properties before calling instance_finalize
author
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 11 Jun 2014 09:58:30 +0000
(11:58 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Sun, 17 Aug 2014 21:25:24 +0000
(23:25 +0200)
This ensures that the children's unparent callback will still
have a usable parent.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c
patch
|
blob
|
history
diff --git
a/qom/object.c
b/qom/object.c
index
0e8267b
..
f301bc2
100644
(file)
--- 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) {