cleanup (deleting NULL pointers is explicitly allowed)
This commit is contained in:
parent
b68429c862
commit
34d23fe6f3
1 changed files with 1 additions and 5 deletions
|
@ -98,11 +98,7 @@ FGGlobals::~FGGlobals()
|
|||
delete commands;
|
||||
delete io;
|
||||
delete renderer;
|
||||
|
||||
// make sure only to delete the initial waypoints list if it acually
|
||||
// still exists.
|
||||
if (initial_waypoints)
|
||||
delete initial_waypoints;
|
||||
delete initial_waypoints;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue