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
|
@ -122,7 +122,9 @@ FGJSBsim::FGJSBsim( double dt )
|
||||||
FGJSBsim::~FGJSBsim(void) {
|
FGJSBsim::~FGJSBsim(void) {
|
||||||
if ( fdmex != NULL ) {
|
if ( fdmex != NULL ) {
|
||||||
delete fdmex;
|
delete fdmex;
|
||||||
|
fdmex = NULL;
|
||||||
delete fgic;
|
delete fgic;
|
||||||
|
fgic = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue