diff --git a/src/Provider.cpp b/src/Provider.cpp index 0fc860a..a7e42c6 100644 --- a/src/Provider.cpp +++ b/src/Provider.cpp @@ -36,7 +36,7 @@ Provider::Provider( } Provider::Provider(Provider&& other) { - other.self->get_engine().pop_finalize_callback(this); + other.self->get_engine().pop_finalize_callback(&other); self = std::move(other.self); self->get_engine().push_finalize_callback(this, [p=this]() { p->self.reset(); }); }