win32下的模拟器存在几处内存泄漏的地方,基本上都是类似
SimulatorWin *SimulatorWin::_instance = nullptr;
SimulatorWin *SimulatorWin::getInstance()
{
if (!_instance)
{
_instance = new SimulatorWin();
}
return _instance;
}
只有new,没有delete,比较影响非引擎c++部分的内存泄漏判断
其他平台的模拟器不知道会不会