Memory Leak: 57 MB
60,200,752 (59,468,656 direct, 732,096 indirect) bytes in 285,907 blocks are definitely lost in loss record 15,499 of 15,501
This commit is contained in:
parent
b04a0d74f6
commit
75e28368ea
1 changed files with 6 additions and 0 deletions
|
@ -493,6 +493,12 @@ void FGTrafficManager::shutdown()
|
|||
cachefile.close();
|
||||
}
|
||||
scheduledAircraft.clear();
|
||||
|
||||
// REVIEW: Memory Leak
|
||||
// 60,200,752 (59,468,656 direct, 732,096 indirect) bytes in 285,907 blocks are definitely lost in loss record 15,499 of 15,501
|
||||
// for (auto flight : flights[requiredAircraft]) {
|
||||
// delete flight;
|
||||
// }
|
||||
flights.clear();
|
||||
|
||||
currAircraft = scheduledAircraft.begin();
|
||||
|
|
Loading…
Add table
Reference in a new issue