]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Fri, 9 Feb 2007 05:35:10 +0000 (05:35 +0000)
committerfrohlich <frohlich>
Fri, 9 Feb 2007 05:35:10 +0000 (05:35 +0000)
  Navaids/navdb.cxx: Olaf Flebbe: plug memory leak.

src/Navaids/navdb.cxx

index d5e8005dff089cf73f714f9361228a3a73ae371d..020664f3cc15032df4c907c9dad47b349079dd71 100644 (file)
@@ -85,6 +85,7 @@ bool fgNavDBInit( FGAirportList *airports,
         FGNavRecord *r = new FGNavRecord;
         in >> (*r);
         if ( r->get_type() > 95 ) {
+            delete r;
             break;
         }