Skip to content

Commit

Permalink
fixing finalization callback logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Oct 17, 2024
1 parent 46d4248 commit 97243d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(); });
}
Expand Down

0 comments on commit 97243d5

Please sign in to comment.