From bc4859c0fbf98f66832ddcdf46922df92dbf7cf8 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 11 Jul 2001 15:50:18 +0000 Subject: [PATCH] Attempt to fix a segfault on exit, although I don't think this quite does it. We'll have to dig deeper. --- src/Objects/matlib.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Objects/matlib.cxx b/src/Objects/matlib.cxx index 3f695724f..7103d976e 100644 --- a/src/Objects/matlib.cxx +++ b/src/Objects/matlib.cxx @@ -279,6 +279,7 @@ FGMaterialLib::~FGMaterialLib ( void ) { FGNewMat *slot = it->second; if ( slot != NULL ) { delete slot; + it->second = NULL; } } } -- 2.39.5