diff --git a/src/gtk/colour.cpp b/src/gtk/colour.cpp index 84c790a329..0eac04248a 100644 --- a/src/gtk/colour.cpp +++ b/src/gtk/colour.cpp @@ -217,7 +217,6 @@ void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue ) { AllocExclusive(); - m_refData = new wxColourRefData(); M_COLDATA->m_color.red = ((unsigned short)red) << SHIFT; M_COLDATA->m_color.green = ((unsigned short)green) << SHIFT; M_COLDATA->m_color.blue = ((unsigned short)blue) << SHIFT; diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index 84c790a329..0eac04248a 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/colour.cpp @@ -217,7 +217,6 @@ void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue ) { AllocExclusive(); - m_refData = new wxColourRefData(); M_COLDATA->m_color.red = ((unsigned short)red) << SHIFT; M_COLDATA->m_color.green = ((unsigned short)green) << SHIFT; M_COLDATA->m_color.blue = ((unsigned short)blue) << SHIFT;