From 34d23fe6f323faab014bedb232bca093dc51f6fe Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 2 May 2005 06:03:25 +0000 Subject: [PATCH] cleanup (deleting NULL pointers is explicitly allowed) --- src/Main/globals.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 4a3377ed0..1559a9600 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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; }