qom: object: remove parent pointer when unparenting
commitc28322d10cd5f0529605b48684d2b82c9eb9c020
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 27 May 2014 00:39:51 +0000 (26 17:39 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Jul 2014 08:20:41 +0000 (1 10:20 +0200)
treea797fc6251cb2ff393d2fe789963b1fd08229a25
parent654a36d857ff949e0d1989904b76f53fded9dc83
qom: object: remove parent pointer when unparenting

Certain parts of the QOM framework test this pointer to determine if
an object is parented. Nuke it when the object is unparented to allow
for reuse of an object after unparenting.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c