mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00: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:
parent
23876b80c5
commit
076b7069ce
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue