qom: Remove parent pointer when unparenting
commitd15ae221eada39949b025d641f82d2c4a2ad8dde
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 27 May 2014 00:39:51 +0000 (26 17:39 -0700)
committerAndreas Färber <afaerber@suse.de>
Mon, 30 Jun 2014 19:13:30 +0000 (30 21:13 +0200)
tree5d542dafe8a55f3a5103fab594168e92deacb30e
parent53a259da5697ec8a82463161e2e32ff942a08bc2
qom: 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: Andreas Färber <afaerber@suse.de>
qom/object.c