]> OCCT Git - occt-copy.git/commitdiff
0023532: Mismatching allocation and deallocation: anAsciiString, CDM_COutMessageDrive...
authorPawel <pawel-kowalski@wp.pl>
Fri, 30 Nov 2012 11:35:12 +0000 (15:35 +0400)
committerPawel <pawel-kowalski@wp.pl>
Fri, 30 Nov 2012 11:35:12 +0000 (15:35 +0400)
Replaced 'delete' with 'delete []' when deallocating array.

src/CDM/CDM_COutMessageDriver.cxx

index 2d6cd7107b5a3f00f39545ffe405a0d69a1d6531..634cc1c3b5c0ca4fb192fc18f46a473e6d5e4c66 100755 (executable)
@@ -48,5 +48,5 @@ void CDM_COutMessageDriver::Write (const Standard_ExtString aString)
 
   //    Output
   cout << anAsciiString << flush;
-  delete anAsciiString;
+  delete [] anAsciiString;
 }