From ad69578209c3fe9c9de29d84072c3ae2be1ac1aa Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Thu, 17 Oct 2024 12:36:31 +0100 Subject: [PATCH] fixing finalization callback logic --- src/Provider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider.cpp b/src/Provider.cpp index b350d11..20f7e6a 100644 --- a/src/Provider.cpp +++ b/src/Provider.cpp @@ -19,7 +19,7 @@ Provider::Provider(const tl::engine& engine, uint16_t provider_id, const std::st } 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(); }); }