summary refs log tree commit diff stats
path: root/hw/misc/pci-testdev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-11 11:57:38 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-08-17 23:25:24 +0200
commitbffc687d66604e68c14f6277b595b33966eb328a (patch)
tree592506a646a96de665751d870b3f80def0d54436 /hw/misc/pci-testdev.c
parent76a6e1cc7cc3ad022e7159b37b291b75bc4615bf (diff)
downloadfocaccia-qemu-bffc687d66604e68c14f6277b595b33966eb328a.tar.gz
focaccia-qemu-bffc687d66604e68c14f6277b595b33966eb328a.zip
qom: object: move unparenting to the child property's release callback
This ensures that the unparent callback is called automatically
when the parent object is finalized.

Note that there's no need to keep a reference neither in
object_unparent nor in object_finalize_child_property.  The
reference held by the child property itself will do.

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/pci-testdev.c')
0 files changed, 0 insertions, 0 deletions