[mem leak] run_CallExp fixed about ImplicitList 23/17323/2
Cedric Delamarre [Tue, 13 Oct 2015 16:14:42 +0000 (18:14 +0200)]
1:10

Change-Id: I1c43d099df9c9564b4c3ac9defd4aebb99e4df92

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;
                 }
             }