Coverity #1247398, #1199692, #1321278, #1321279, #1321280, #1321281, #1097625 fixed...
[scilab.git] / scilab / modules / gui / src / cpp / SetUicontrolIcon.cpp
index 2cb4437..550db75 100644 (file)
@@ -57,7 +57,7 @@ int SetUicontrolIcon(void* _pvCtx, int iObjUID, void* _pvData, int valueType, in
         }
         else
         {
-            free(iconPath);
+            delete[] iconPath;
         }
     }