commit | 667d22d1ae59da46b4c1fbd094ca61145f19b8c3 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Nov 23 09:47:13 2012 +0100 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Mon Nov 26 13:41:00 2012 -0600 |
tree | db6acb0b6dce798eb5588ef8d05a9873e8114ddc | |
parent | 764b63125a77dab54ed405d493452a4e05679c2e [diff] |
qdev: move bus removal to object_unparent Add an ObjectClass method that is done at object_unparent time. It should remove any backlinks to the object in the composition tree, so that object_delete will be able to drop the last reference and free the object. Use it for qdev buses. Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>