From: curt Date: Wed, 11 Jul 2001 15:50:18 +0000 (+0000) Subject: Attempt to fix a segfault on exit, although I don't think this quite X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc4859c0fbf98f66832ddcdf46922df92dbf7cf8;p=flightgear.git Attempt to fix a segfault on exit, although I don't think this quite does it. We'll have to dig deeper. --- 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; } } }