From: Robert Roebling Date: Tue, 15 Feb 2005 18:43:33 +0000 (+0000) Subject: Fixed mem leak in wxColour::Set() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b46a190c27e74146c9fb14345efb1ebdc425774d?ds=sidebyside Fixed mem leak in wxColour::Set() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index 9ce03f2d5b..a9c177d209 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -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) ;