From 35833b845b65b5c95be049d5d9c806c636df9bec Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 16 Feb 2009 10:59:55 +0000 Subject: [PATCH] fixing retain semantics git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/textctrl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 18cb063018..b176182115 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -3198,6 +3198,7 @@ void wxMacMLTEHIViewControl::SetBackground( const wxBrush &brush ) CGColorRef color = CGColorCreate( wxMacGetGenericRGBColorSpace() , component ); HITextViewSetBackgroundColor( m_textView , color ); + CGColorRelease(color); } else #endif