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 commands;
|
||||||
delete io;
|
delete io;
|
||||||
delete renderer;
|
delete renderer;
|
||||||
|
delete initial_waypoints;
|
||||||
// make sure only to delete the initial waypoints list if it acually
|
|
||||||
// still exists.
|
|
||||||
if (initial_waypoints)
|
|
||||||
delete initial_waypoints;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue