From fdbc769543ea08ea41be04801f517df79357c929 Mon Sep 17 00:00:00 2001 From: sln Date: Mon, 24 Sep 2012 10:46:07 +0000 Subject: [PATCH] Nullify file pointer after closing --- src/LightApp/LightApp_Driver.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LightApp/LightApp_Driver.cxx b/src/LightApp/LightApp_Driver.cxx index b534201aa..31e8fa864 100644 --- a/src/LightApp/LightApp_Driver.cxx +++ b/src/LightApp/LightApp_Driver.cxx @@ -930,6 +930,7 @@ void LightApp_Driver::FreeTemporaryFiles( const char* theModuleName ) if ( myBloc ) { fclose( myBloc ); + myBloc = 0; QString fName = Qtx::addSlash( aFiles.front().c_str() ) + "used_by_salome"; QFile::remove( fName ); } @@ -937,6 +938,7 @@ void LightApp_Driver::FreeTemporaryFiles( const char* theModuleName ) if ( myBlocFcntl ) { fclose( myBlocFcntl ); + myBlocFcntl = 0; QString fName = Qtx::addSlash( aFiles.front().c_str() ) + "used_by_salome.fcntl"; QFile::remove( fName ); } -- 2.39.2