]> git.mxchange.org Git - flightgear.git/commitdiff
We check if the ptr is NULL before deleting it, so set it to NULL after
authorcurt <curt>
Fri, 13 Jul 2001 05:12:30 +0000 (05:12 +0000)
committercurt <curt>
Fri, 13 Jul 2001 05:12:30 +0000 (05:12 +0000)
deleting it.

src/FDM/LaRCsim.cxx

index 1ef2fbb68f3d124196591f946c8e5deec2c79d2a..0da1f9f9258f9af0fe84ad068a83324fae1d55c1 100644 (file)
@@ -78,8 +78,9 @@ FGLaRCsim::FGLaRCsim( double dt ) {
 }
 
 FGLaRCsim::~FGLaRCsim(void) {
-    if(lsic != NULL) {
+    if ( lsic != NULL ) {
        delete lsic;
+       lsic = NULL;
     }
 }