]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a potentially tiny memory leak.
authordurk <durk>
Sat, 30 Sep 2006 05:17:45 +0000 (05:17 +0000)
committerdurk <durk>
Sat, 30 Sep 2006 05:17:45 +0000 (05:17 +0000)
src/Main/fg_io.cxx

index f65e952f50001863dbaea065fadb16fb661e5fd8..134087885203e16ab1a6ff840a5394811d632932 100644 (file)
@@ -114,6 +114,7 @@ FGIO::parse_port_config( const string& config )
                 SG_LOG( SG_IO, SG_ALERT, "Usage: --atcsim=[no-]pedals,"
                         << "input0_config,input1_config,"
                         << "output0_config,output1_config,file.nas" );
+               delete atcsim;
                 return NULL;
             }
             if ( tokens[1] == "no-pedals" ) {