Bug #15121 2009-01-25 21:49

dvice_null

PlatMacOSX.cxx:324: Mismatching allocation and deallocation

In file src/sdk/wxscintilla/src/scintilla/macosx/PlatMacOSX.cxx:324:

Variable points is allocated with:

CGPoint *points = new CGPoint[ npts ];

And later deallocated with:

delete points;

This can cause undefined behavior according to the C++ standard. The latter should be:

delete [] points;

This bug was found using cppcheck: http://cppcheck.wiki.sourceforge.net/

Category
 
Group
 
Status
Closed
Close date
2009-02-07 12:16
Assigned to
biplab
biplab 2009-02-07 12:16

This bug is now fixed in HEAD.

Thank you for reporting it.