From e4044e469f82fe8ea387a3136fc5807124ef7b01 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 13 Jul 2001 05:12:30 +0000 Subject: [PATCH] We check if the ptr is NULL before deleting it, so set it to NULL after deleting it. --- src/FDM/LaRCsim.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.39.5