diff options
Diffstat (limited to 'qom/object.c')
-rw-r--r-- | qom/object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qom/object.c b/qom/object.c index 3876618c2e..7cefdf2137 100644 --- a/qom/object.c +++ b/qom/object.c @@ -402,6 +402,7 @@ void object_unparent(Object *obj) } if (obj->parent) { object_property_del_child(obj->parent, obj, NULL); + obj->parent = NULL; } object_unref(obj); } |