Skip to content

Avoid duplicating connections between ref and its ref model

ivan tkachenko requested to merge work/ratijas/fix-duplicate-connection into master

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 (closed)

Merge request reports

Loading