[mem leak] run_CallExp fixed about ImplicitList
[scilab.git] / scilab / modules / ast / src / cpp / ast / run_CallExp.hpp
index 4818750..9edf823 100644 (file)
@@ -160,7 +160,9 @@ void RunVisitorT<T>::visitprivate(const CallExp &e)
                     types::InternalType* pITExtract = pIL->extractFullMatrix();
                     pITExtract->IncreaseRef();
                     in.push_back(pITExtract);
-                    inTmp[iterIn++]->killMe();
+                    pIL->DecreaseRef();
+                    pIL->killMe();
+                    iterIn++;
                     continue;
                 }
             }