Modified Files:
Navaids/navdb.cxx: Olaf Flebbe: plug memory leak.
This commit is contained in:
parent
654cc64659
commit
4101e6791b
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ bool fgNavDBInit( FGAirportList *airports,
|
||||||
FGNavRecord *r = new FGNavRecord;
|
FGNavRecord *r = new FGNavRecord;
|
||||||
in >> (*r);
|
in >> (*r);
|
||||||
if ( r->get_type() > 95 ) {
|
if ( r->get_type() > 95 ) {
|
||||||
|
delete r;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue