delete of opt arguments corrected.
[scilab.git] / scilab / modules / ast / src / cpp / ast / run_AssignExp.cpp
index b622433..82294e9 100644 (file)
@@ -233,10 +233,7 @@ void RunVisitorT<T>::visitprivate(const AssignExp  &e)
                 VariableToString(pOut, wcsVarName);
             }
 
-            if (pITR->isDeletable())
-            {
-                delete pITR;
-            }
+            pITR->killMe();
 
             result_clear();
             return;