]> git.proxmox.com Git - qemu.git/commit - qom/object.c
qom: call class destructor before unparent
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 18 Mar 2013 19:01:37 +0000 (21:01 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Mar 2013 19:00:45 +0000 (21:00 +0200)
commite998fa8df828ef68ea540a12917d10b4d335c1dd
tree0e5c1f751a8a63bfab8a9a33a3b27a8c41ecca02
parent0402a5d65ec004df5345d1f736e2ddaa7aee6665
qom: call class destructor before unparent

It seems more logical to have destruction flow start with the subclass
and move up to the base class.  This ensures object has a valid
canonical path when destructor is called.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
qom/object.c