Fixed mem leak in wxColour::Set()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e66faf3d43
commit
b46a190c27
@ -232,7 +232,6 @@ void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue )
|
||||
{
|
||||
AllocExclusive();
|
||||
|
||||
m_refData = new wxColourRefData();
|
||||
#if wxUSE_NANOX
|
||||
M_COLDATA->m_color.red = ((unsigned short)red) ;
|
||||
M_COLDATA->m_color.green = ((unsigned short)green) ;
|
||||
|
Loading…
Reference in New Issue
Block a user