From 48acff7892730301ee85228376d809d513ed4c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 25 Sep 2002 11:10:51 +0000 Subject: [PATCH] fixed memory leak in wxColour git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/colour.cpp | 1 - src/gtk1/colour.cpp | 1 - 2 files changed, 2 deletions(-) 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;