List extraction fixed.
[scilab.git] / scilab / modules / ast / src / cpp / types / list.cpp
index 55a508c..bf37a9d 100644 (file)
@@ -173,7 +173,7 @@ InternalType* List::extract(typed_list* _pArgs)
         if (idx > getSize() || idx < 1)
         {
             delete outList;
-            outList = new List();
+            outList = NULL;
             break;
         }
         InternalType* pIT = (*m_plData)[idx - 1];