]> git.mxchange.org Git - flightgear.git/commitdiff
Attempt to fix a segfault on exit, although I don't think this quite
authorcurt <curt>
Wed, 11 Jul 2001 15:50:18 +0000 (15:50 +0000)
committercurt <curt>
Wed, 11 Jul 2001 15:50:18 +0000 (15:50 +0000)
does it.  We'll have to dig deeper.

src/Objects/matlib.cxx

index 3f695724f916fcf0b097a4d1759f5eea17907309..7103d976eeeee9188ca6a51c16884bfbda6a9d86 100644 (file)
@@ -279,6 +279,7 @@ FGMaterialLib::~FGMaterialLib ( void ) {
        FGNewMat *slot = it->second;
         if ( slot != NULL ) {
             delete slot;
+           it->second = NULL;
         }
     }
 }