From 97243d5f1ebadeb2521543b10c98f1f7cca1ee1d Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Thu, 17 Oct 2024 13:03:44 +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 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(); }); }