Actually unregister List notifiers when the List is destroyed
This commit is contained in:
parent
45705b18d2
commit
8623aa6c6b
|
@ -29,7 +29,12 @@ using namespace realm;
|
||||||
using namespace realm::_impl;
|
using namespace realm::_impl;
|
||||||
|
|
||||||
List::List() noexcept = default;
|
List::List() noexcept = default;
|
||||||
List::~List() = default;
|
List::~List()
|
||||||
|
{
|
||||||
|
if (m_notifier) {
|
||||||
|
m_notifier->unregister();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
List::List(std::shared_ptr<Realm> r, const ObjectSchema& s, LinkViewRef l) noexcept
|
List::List(std::shared_ptr<Realm> r, const ObjectSchema& s, LinkViewRef l) noexcept
|
||||||
: m_realm(std::move(r))
|
: m_realm(std::move(r))
|
||||||
|
|
Loading…
Reference in New Issue