mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
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…
x
Reference in New Issue
Block a user