diff options
Diffstat (limited to 'qom/qom-qobject.c')
-rw-r--r-- | qom/qom-qobject.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/qom/qom-qobject.c b/qom/qom-qobject.c index b66088d730..c3c9188d00 100644 --- a/qom/qom-qobject.c +++ b/qom/qom-qobject.c @@ -21,12 +21,11 @@ void object_property_set_qobject(Object *obj, QObject *value, const char *name, Error **errp) { - QmpInputVisitor *qiv; + Visitor *v; /* TODO: Should we reject, rather than ignore, excess input? */ - qiv = qmp_input_visitor_new(value, false); - object_property_set(obj, qmp_input_get_visitor(qiv), name, errp); - - qmp_input_visitor_cleanup(qiv); + v = qmp_input_visitor_new(value, false); + object_property_set(obj, v, name, errp); + visit_free(v); } QObject *object_property_get_qobject(Object *obj, const char *name, |