We check if the ptr is NULL before deleting it, so set it to NULL after
deleting it.
This commit is contained in:
parent
0ff9311948
commit
e4044e469f
1 changed files with 2 additions and 1 deletions
|
@ -78,8 +78,9 @@ FGLaRCsim::FGLaRCsim( double dt ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
FGLaRCsim::~FGLaRCsim(void) {
|
FGLaRCsim::~FGLaRCsim(void) {
|
||||||
if(lsic != NULL) {
|
if ( lsic != NULL ) {
|
||||||
delete lsic;
|
delete lsic;
|
||||||
|
lsic = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue