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
|
@ -80,6 +80,7 @@ FGLaRCsim::FGLaRCsim( double dt ) {
|
|||
FGLaRCsim::~FGLaRCsim(void) {
|
||||
if ( lsic != NULL ) {
|
||||
delete lsic;
|
||||
lsic = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue