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