Just being a tad more careful with setting the ptr to NULL after deleting
it.
This commit is contained in:
parent
0fa4b9a154
commit
0ff9311948
1 changed files with 3 additions and 1 deletions
|
@ -120,9 +120,11 @@ FGJSBsim::FGJSBsim( double dt )
|
|||
|
||||
/******************************************************************************/
|
||||
FGJSBsim::~FGJSBsim(void) {
|
||||
if(fdmex != NULL) {
|
||||
if ( fdmex != NULL ) {
|
||||
delete fdmex;
|
||||
fdmex = NULL;
|
||||
delete fgic;
|
||||
fgic = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue