0022753: Fix mismatch new/delete in Standard_Failure.cxx
[occt.git] / src / Standard / Standard_Failure.cxx
index fc79488..a208c6d 100755 (executable)
@@ -38,7 +38,7 @@ static void deallocate_message(Standard_CString aMessage)
   if(aMessage) {
     (*((Standard_Integer*)aMessage))--;
     if(*((Standard_Integer*)aMessage)==0)
-      delete (Standard_PCharacter)aMessage;
+      delete [](Standard_PCharacter)aMessage;
   }
 }