mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
simulator: delete PublicationMulti ptrs for sensor_gps
This commit is contained in:
parent
f73d93ef6c
commit
cef3d36af2
@ -146,6 +146,10 @@ private:
|
||||
|
||||
px4_lockstep_unregister_component(_lockstep_component);
|
||||
|
||||
for (size_t i = 0; i < sizeof(_sensor_gps_pubs) / sizeof(_sensor_gps_pubs[0]); i++) {
|
||||
delete _sensor_gps_pubs[i];
|
||||
}
|
||||
|
||||
_instance = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user