From: curt Date: Fri, 13 Jul 2001 05:12:30 +0000 (+0000) Subject: We check if the ptr is NULL before deleting it, so set it to NULL after X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4044e469f82fe8ea387a3136fc5807124ef7b01;p=flightgear.git We check if the ptr is NULL before deleting it, so set it to NULL after deleting it. --- diff --git a/src/FDM/LaRCsim.cxx b/src/FDM/LaRCsim.cxx index 1ef2fbb68..0da1f9f92 100644 --- a/src/FDM/LaRCsim.cxx +++ b/src/FDM/LaRCsim.cxx @@ -78,8 +78,9 @@ FGLaRCsim::FGLaRCsim( double dt ) { } FGLaRCsim::~FGLaRCsim(void) { - if(lsic != NULL) { + if ( lsic != NULL ) { delete lsic; + lsic = NULL; } }