From fc8d46b34a7701f9c1a45251c0eb1a0081e48f6e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:39:59 +0000 Subject: [PATCH] wxColurRefData in x11 did not overwrite CreateRef function, so it should not use AllocExclusive(), use UnRef() instead, just like InitRGBA() function in wxGTK port did git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/colour.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index 467d3f45a0..7f9e2878c1 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -172,7 +172,8 @@ wxGDIRefData *wxColour::CloneGDIRefData(const wxGDIRefData *data) const void wxColour::InitRGBA(unsigned char red, unsigned char green, unsigned char blue, unsigned char WXUNUSED(alpha)) { - AllocExclusive(); + UnRef(); + m_refData = new wxColourRefData(); #if wxUSE_NANOX M_COLDATA->m_color.red = ((unsigned short)red) ;