diff --git a/src/list.cpp b/src/list.cpp index b6ac8c61..38adfac8 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -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 r, const ObjectSchema& s, LinkViewRef l) noexcept : m_realm(std::move(r))