diff options
Diffstat (limited to 'qom')
-rw-r--r-- | qom/object.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qom/object.c b/qom/object.c index fc19cf676a..309cb0a28a 100644 --- a/qom/object.c +++ b/qom/object.c @@ -703,6 +703,11 @@ void object_ref(Object *obj) void object_unref(Object *obj) { +// WA for avoid QOM bug related with qbus_create_inplace()... see hw/qdev.c + if(obj->ref == 0) { // Object already finalized... + return; + } +// g_assert(obj->ref > 0); /* parent always holds a reference to its children */ |