]> git.mxchange.org Git - flightgear.git/commitdiff
cleanup (deleting NULL pointers is explicitly allowed)
authormfranz <mfranz>
Mon, 2 May 2005 06:03:25 +0000 (06:03 +0000)
committermfranz <mfranz>
Mon, 2 May 2005 06:03:25 +0000 (06:03 +0000)
src/Main/globals.cxx

index 4a3377ed098447a8a7d901e92436a6d9d703cc56..1559a9600382ef957c64e1f8b733f9d341ba1c3b 100644 (file)
@@ -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;
 }