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:
Guillermo Rodriguez Garcia 2000-02-18 16:15:17 +00:00
parent 28026dc671
commit aadaf84128

View File

@ -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 );