]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed mem leak in wxColour::Set()
authorRobert Roebling <robert@roebling.de>
Tue, 15 Feb 2005 18:43:33 +0000 (18:43 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 15 Feb 2005 18:43:33 +0000 (18:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/colour.cpp

index 9ce03f2d5b94e88f5c6d649bcfb951a08597c61c..a9c177d209bba30e9ef2623ecec701b03c4f9f02 100644 (file)
@@ -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) ;