caizm пре 2 година
родитељ
комит
e4dee0c30e
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      CAE_Solution/src/threadPool_and_statemachine/dealWith/handlepool.cpp

+ 4 - 0
CAE_Solution/src/threadPool_and_statemachine/dealWith/handlepool.cpp

@@ -782,8 +782,12 @@ bool handlePool::result_readIgsFile(boostJsonObject *object_, QVTKRenderer *rend
 
     try{
     if(cmdp->CreateProcess_(object_->da_struct->geoPath,"")){//unuse xmlpath
+        delete cmdp;
+        cmdp = NULL;
         return true;
     }else{
+        delete cmdp;
+        cmdp = NULL;
         return false;
     }
     }catch(myException &ex){