mirror of https://github.com/xemu-project/xemu.git
object: check strong flag with &
The following patch is going to introduce more flags. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200110153039.1379601-13-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fc4fe712ae
commit
8770bafdc9
|
@ -1806,7 +1806,7 @@ static void object_set_link_property(Object *obj, Visitor *v,
|
|||
}
|
||||
|
||||
*child = new_target;
|
||||
if (prop->flags == OBJ_PROP_LINK_STRONG) {
|
||||
if (prop->flags & OBJ_PROP_LINK_STRONG) {
|
||||
object_ref(new_target);
|
||||
object_unref(old_target);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue