Coverity fixes : CID #1097910 #1097911 37/19237/1
Siddhartha Gairola [Tue, 28 Mar 2017 16:39:08 +0000 (21:39 +0530)]
Change-Id: I71e30b1a333561677f2721663e19a4a9aa12ff64

scilab/modules/gui/sci_gateway/cpp/sci_uigetfile.cpp

index f06c1e5..23d37a3 100644 (file)
@@ -55,7 +55,7 @@ static void freePointersUigetfile(char **selection, char **selectionFileNames, c
     }
     if (selectionPathName)
     {
-        delete selectionPathName;
+        delete[] selectionPathName;
         selectionPathName = NULL;
     }
     if (selectionFileNames)
@@ -73,7 +73,7 @@ static void freePointersUigetfile(char **selection, char **selectionFileNames, c
     }
     if (menuCallback)
     {
-        delete menuCallback;
+        delete[] menuCallback;
         menuCallback = NULL;
     }
 }