]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
23336: [CEA 1940] Crash when editing a skin mesh generated by MG-Cleaner
authoreap <eap@opencascade.com>
Mon, 28 Nov 2016 14:05:09 +0000 (17:05 +0300)
committereap <eap@opencascade.com>
Mon, 28 Nov 2016 14:05:09 +0000 (17:05 +0300)
 fix valgrid error "Mismatched free() / delete / delete []"

src/Qtx/Qtx.cxx

index fd7622eec4b862de7a72e5fbb2d50d523deaeaab..0bacef045c4ffef344561205859e81e5296d9330 100755 (executable)
@@ -2210,7 +2210,7 @@ Qtx::CmdLineArgs::CmdLineArgs()
 Qtx::CmdLineArgs::~CmdLineArgs()
 {
   for ( int i = 0; i < myArgc; i++ )
-    delete myArgv[i];
+    delete[] myArgv[i];
   delete[] myArgv;
 }