mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 20:15:15 +02:00
more clean up
This commit is contained in:
parent
0e6fcf0fe6
commit
684d71fc5b
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,8 @@ void platform::create() {
|
|||
}
|
||||
|
||||
void platform::destroy() {
|
||||
delete _instance;
|
||||
if(_instance)
|
||||
delete _instance;
|
||||
}
|
||||
|
||||
json* Instance::getCPU(int index) {
|
||||
|
@ -97,14 +98,13 @@ Instance::~Instance() {
|
|||
for (std::vector<json*>::iterator it = _gpu.begin(); it != _gpu.end(); ++it) {
|
||||
delete (*it);
|
||||
}
|
||||
_gpu.clear();
|
||||
_gpu.clear();
|
||||
}
|
||||
|
||||
if (_display.size() > 0) {
|
||||
for (std::vector<json*>::iterator it = _display.begin(); it != _display.end(); ++it) {
|
||||
delete (*it);
|
||||
}
|
||||
|
||||
_display.clear();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue