api_scilab: fix delete 58/18058/2
Paul Bignier [Fri, 8 Apr 2016 06:49:25 +0000 (08:49 +0200)]
Change-Id: Ie583c4805b40cc63c2ff8764b51f153e4c5402f2

scilab/modules/api_scilab/src/cpp/api_stack_boolean.cpp

index bf7306f..532ffd9 100644 (file)
@@ -95,7 +95,7 @@ SciErr allocMatrixOfBoolean(void* _pvCtx, int _iVar, int _iRows, int _iCols, int
     if (*_piBool == NULL)
     {
         addErrorMessage(&sciErr, API_ERROR_NO_MORE_MEMORY, _("%s: No more memory to allocated variable"), "allocMatrixOfBoolean");
-        delete[] pBool;
+        delete pBool;
         return sciErr;
     }