From c78827569a8dccda11f3107a6e0b73d811150621 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 31 Jan 2001 15:58:53 +0000 Subject: [PATCH] Properly close our database file ... --- src/Airports/runways.cxx | 2 +- src/Airports/simple.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5