Skip to content

Commit

Permalink
action_server: fix heap corruption on destruction
Browse files Browse the repository at this point in the history
We need to make sure no callbacks are called once detructed.
  • Loading branch information
julianoes committed Apr 22, 2022
1 parent 756736b commit b126099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mavsdk/plugins/action_server/action_server_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ void ActionServerImpl::init()
this);
}

void ActionServerImpl::deinit() {}
void ActionServerImpl::deinit()
{
_server_component_impl->unregister_all_mavlink_command_handlers(this);
}

void ActionServerImpl::enable() {}

Expand Down

0 comments on commit b126099

Please sign in to comment.