mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 07:10:34 +08:00
WIP: valgrind runtime analysis and fixes (#6521)
* Fix several valgrind identified mem leaks * Added callgrind target. * px4_posix_tasks use nullptr
This commit is contained in:
@@ -278,7 +278,14 @@ private:
|
||||
_actuator_outputs_sub[i] = -1;
|
||||
}
|
||||
}
|
||||
~Simulator() { _instance = NULL; }
|
||||
~Simulator()
|
||||
{
|
||||
if (_instance != nullptr) {
|
||||
delete _instance;
|
||||
}
|
||||
|
||||
_instance = NULL;
|
||||
}
|
||||
|
||||
void initializeSensorData();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user