simulator: delete PublicationMulti ptrs for sensor_gps

This commit is contained in:
TSC21 authored and Nuno Marques committed 2021-01-10 19:58:54 +01:00
1 parent f73d93ef6c
commit cef3d36af2
1 file changed
+4
+4
View File
@@ -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;
}