Attempt to fix a segfault on exit, although I don't think this quite
does it. We'll have to dig deeper.
This commit is contained in:
parent
1e474b4773
commit
bc4859c0fb
1 changed files with 1 additions and 0 deletions
|
@ -279,6 +279,7 @@ FGMaterialLib::~FGMaterialLib ( void ) {
|
||||||
FGNewMat *slot = it->second;
|
FGNewMat *slot = it->second;
|
||||||
if ( slot != NULL ) {
|
if ( slot != NULL ) {
|
||||||
delete slot;
|
delete slot;
|
||||||
|
it->second = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue