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:
@@ -127,6 +127,8 @@ wxImage::wxImage( const wxImage* image )
|
|||||||
|
|
||||||
void wxImage::Create( int width, int height )
|
void wxImage::Create( int width, int height )
|
||||||
{
|
{
|
||||||
|
UnRef();
|
||||||
|
|
||||||
m_refData = new wxImageRefData();
|
m_refData = new wxImageRefData();
|
||||||
|
|
||||||
M_IMGDATA->m_data = (unsigned char *) malloc( width*height*3 );
|
M_IMGDATA->m_data = (unsigned char *) malloc( width*height*3 );
|
||||||
|
Reference in New Issue
Block a user