mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 23:04:29 +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;
|
||||
|
||||
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
|
||||
: m_realm(std::move(r))
|
||||
|
Loading…
x
Reference in New Issue
Block a user