Paolo Bonzini da5a44e8b0 qom: object_delete should unparent the object first
object_deinit is only called when the reference count goes to zero,
and yet tries to do an object_unparent.  Now, object_unparent
either does nothing or it will decrease the reference count.
Because we know the reference count is zero, the object_unparent
call in object_deinit is useless.

Instead, we need to disconnect the object from its parent just
before we remove the last reference apart from the parent's.  This
happens in object_delete.  Once we do this, all calls to
object_unparent peppered through QEMU can go away.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-08-23 20:19:59 -05:00
..
2012-08-13 16:13:02 +01:00
2012-06-21 16:06:11 +00:00
2012-07-04 15:52:55 +03:00
2012-08-13 16:10:18 -03:00
2012-08-22 10:47:17 -05:00
2012-06-21 16:06:11 +00:00
2012-07-28 09:23:11 +00:00
2012-08-22 10:47:17 -05:00
2012-08-01 12:56:15 +01:00
2012-07-17 16:48:32 +02:00
2012-08-22 10:47:17 -05:00
2012-08-22 10:47:17 -05:00
2012-08-01 12:56:15 +01:00
2012-06-18 15:14:38 +02:00
2012-08-21 15:18:24 -05:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-08-01 12:56:15 +01:00
2012-07-29 17:05:35 +03:00
2012-08-01 12:56:15 +01:00
2012-06-04 23:00:45 +02:00
2012-06-24 01:04:51 +02:00
2012-08-01 12:56:15 +01:00
2012-08-03 10:04:37 +02:00
2012-08-03 10:04:37 +02:00
2012-06-04 23:00:41 +02:00
2012-08-01 12:56:15 +01:00
2012-08-01 12:56:15 +01:00
2012-08-01 13:32:10 +01:00
2012-08-15 19:43:17 +02:00
2012-07-27 21:13:01 +00:00
2012-08-01 12:56:15 +01:00
2012-06-15 14:03:42 +02:00
2012-07-29 17:05:35 +03:00
2012-07-29 17:05:35 +03:00
2012-08-09 18:21:47 +00:00
2012-07-29 17:05:35 +03:00
2012-07-29 17:05:35 +03:00
2012-08-22 10:47:17 -05:00
2012-08-22 10:47:17 -05:00
2012-08-22 10:47:17 -05:00
2012-08-22 10:47:17 -05:00
2012-06-11 00:23:04 +02:00
2012-06-22 10:49:55 +02:00
2012-06-22 10:49:45 +02:00
2012-06-04 23:00:43 +02:00
2012-08-18 08:50:09 +00:00
2012-08-13 11:04:07 +01:00
2012-08-13 11:04:07 +01:00
2012-06-24 01:04:45 +02:00
2012-08-22 10:47:17 -05:00
2012-06-18 15:14:38 +02:00
2012-08-09 18:34:57 +00:00
2012-08-22 10:47:17 -05:00
2012-08-01 12:56:15 +01:00
2012-06-22 10:46:12 +02:00
2012-06-22 10:46:12 +02:00
2012-07-14 10:50:52 +00:00
2012-08-06 14:01:44 -05:00
2012-08-06 14:01:44 -05:00
2012-07-28 09:23:11 +00:00
2012-08-01 08:43:37 -05:00
2012-06-21 16:06:11 +00:00
2012-06-15 13:08:13 +02:00