mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 06:14:14 +08:00
simulator: delete PublicationMulti ptrs for sensor_gps
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user