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:
parent
0d2ef7a802
commit
c56ae04274
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user