Added missing Unref() in wxImage::Create()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
28026dc671
commit
aadaf84128
@ -127,6 +127,8 @@ wxImage::wxImage( const wxImage* image )
|
||||
|
||||
void wxImage::Create( int width, int height )
|
||||
{
|
||||
UnRef();
|
||||
|
||||
m_refData = new wxImageRefData();
|
||||
|
||||
M_IMGDATA->m_data = (unsigned char *) malloc( width*height*3 );
|
||||
|
Loading…
Reference in New Issue
Block a user