[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23
tpaviot
tpaviot at gmail.com
Fri Feb 24 18:50:34 UTC 2012
The following commit has been merged in the upstream branch:
commit c852cd6b823e52c1e46367fae8a7442d1569abc5
Author: tpaviot <tpaviot at gmail.com>
Date: Thu Jan 12 22:10:05 2012 +0100
[cppcheck-error-fix][mismatch-allocation-deallocation]
[Message/Message_PrinterOStream.cxx:125]: (error) Mismatching allocation and deallocation: astr
diff --git a/src/Message/Message_PrinterOStream.cxx b/src/Message/Message_PrinterOStream.cxx
index b74b18f..2d28c97 100644
--- a/src/Message/Message_PrinterOStream.cxx
+++ b/src/Message/Message_PrinterOStream.cxx
@@ -122,7 +122,7 @@ void Message_PrinterOStream::Send (const TCollection_ExtendedString &theString,
char* astr = new char[theString.LengthOfCString()+1];
theString.ToUTF8CString (astr);
Send ( astr, theGravity, putEndl );
- delete astr;
+ delete [] astr;
}
else {
TCollection_AsciiString aStr ( theString, '?' );
--
OCE packaging
More information about the debian-science-commits
mailing list