From: mfranz Date: Mon, 2 May 2005 06:03:25 +0000 (+0000) Subject: cleanup (deleting NULL pointers is explicitly allowed) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34d23fe6f323faab014bedb232bca093dc51f6fe;p=flightgear.git cleanup (deleting NULL pointers is explicitly allowed) --- 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; }