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:
Robert Roebling 2005-02-15 18:43:33 +00:00
parent e66faf3d43
commit b46a190c27

View File

@ -232,7 +232,6 @@ void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue )
{ {
AllocExclusive(); AllocExclusive();
m_refData = new wxColourRefData();
#if wxUSE_NANOX #if wxUSE_NANOX
M_COLDATA->m_color.red = ((unsigned short)red) ; M_COLDATA->m_color.red = ((unsigned short)red) ;
M_COLDATA->m_color.green = ((unsigned short)green) ; M_COLDATA->m_color.green = ((unsigned short)green) ;