projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e66faf3
)
Fixed mem leak in wxColour::Set()
author
Robert Roebling
<robert@roebling.de>
Tue, 15 Feb 2005 18:43:33 +0000
(18:43 +0000)
committer
Robert 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
patch
|
blob
|
blame
|
history
diff --git
a/src/x11/colour.cpp
b/src/x11/colour.cpp
index 9ce03f2d5b94e88f5c6d649bcfb951a08597c61c..a9c177d209bba30e9ef2623ecec701b03c4f9f02 100644
(file)
--- 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();
{
AllocExclusive();
- m_refData = new wxColourRefData();
#if wxUSE_NANOX
M_COLDATA->m_color.red = ((unsigned short)red) ;
M_COLDATA->m_color.green = ((unsigned short)green) ;
#if wxUSE_NANOX
M_COLDATA->m_color.red = ((unsigned short)red) ;
M_COLDATA->m_color.green = ((unsigned short)green) ;