mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
fixed memory leak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@551 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -66,7 +66,7 @@ wxBitmap wxBitmapFromMemoryRGBA(const unsigned char* data, int width, int height
|
|||||||
wxMemoryInputStream is(pdata, bytes);
|
wxMemoryInputStream is(pdata, bytes);
|
||||||
wxBitmap map(wxImage(is, wxBITMAP_TYPE_BMP, -1), -1);
|
wxBitmap map(wxImage(is, wxBITMAP_TYPE_BMP, -1), -1);
|
||||||
|
|
||||||
delete pdata;
|
delete [] pdata;
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user