fixed a big memory leak in DoDrawBitmap() (coverity checker CID 57)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-03-07 23:14:14 +00:00
parent 0d2ef7a802
commit c56ae04274

View File

@ -872,8 +872,8 @@ void wxPostScriptDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y,
unsigned char* data = image.GetData();
/* buffer = line = width*rgb(3)*hexa(2)+'\n'(1)+null(1) */
char* buffer = new char[ w*6+2 ];
// size of the buffer = width*rgb(3)*hexa(2)+'\n'
wxCharBuffer buffer(w*6 + 1);
int firstDigit, secondDigit;
//rows