Skip to content
Verified Commit d852e44c authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

Avoid duplicating connections between ref and its ref model

These two connections should be established once in constructor, not on
every call to setter. Because every time when the setter is called, a
new connections are established which are not bound to the lifetime of
model object being set. But, the model object assigned is not managed
by this Ref object, and will be destroyed without any notice, most
importantly without calling setter with null argument which would be
the only way to clean up these extra connections.

Replaces !38

(cherry picked from commit b114d6e1)
parent 73153489
Pipeline #342399 passed with stage
in 46 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment