From: curt Date: Wed, 31 Jan 2001 15:58:53 +0000 (+0000) Subject: Properly close our database file ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c78827569a8dccda11f3107a6e0b73d811150621;p=flightgear.git Properly close our database file ... --- diff --git a/src/Airports/runways.cxx b/src/Airports/runways.cxx index f670192e2..df1c42c74 100644 --- a/src/Airports/runways.cxx +++ b/src/Airports/runways.cxx @@ -157,7 +157,7 @@ bool FGRunways::next( FGRunway* r ) { // Destructor FGRunways::~FGRunways( void ) { - // gdbm_close( dbf ); + delete storage; } diff --git a/src/Airports/simple.cxx b/src/Airports/simple.cxx index 5b27837bb..d2d758d2a 100644 --- a/src/Airports/simple.cxx +++ b/src/Airports/simple.cxx @@ -102,7 +102,7 @@ FGAirports::search( const string& id ) const // Destructor FGAirports::~FGAirports( void ) { - // gdbm_close( dbf ); + delete storage; }