X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6239ee05567eac71754f56c2a154222d10b57ff1..ffbf7f6634ebdce1055ec21256c4fd3e3bd410c8:/src/mac/carbon/tooltip.cpp diff --git a/src/mac/carbon/tooltip.cpp b/src/mac/carbon/tooltip.cpp index 91856f165d..957feb0491 100644 --- a/src/mac/carbon/tooltip.cpp +++ b/src/mac/carbon/tooltip.cpp @@ -228,7 +228,7 @@ void wxMacToolTip::Draw() wxMacLocalToGlobal( m_window , &p ) ; SetRect( &tag.absHotRect , p.h - 2 , p.v - 2 , p.h + 2 , p.v + 2 ); - m_helpTextRef.Assign( m_label , wxFONTENCODING_DEFAULT ) ; + m_helpTextRef = wxCFStringRef( m_label , wxFONTENCODING_DEFAULT ) ; tag.content[kHMMinimumContentIndex].contentType = kHMCFStringContent ; tag.content[kHMMinimumContentIndex].u.tagCFString = m_helpTextRef ; tag.content[kHMMaximumContentIndex].contentType = kHMCFStringContent ; @@ -258,7 +258,6 @@ void wxMacToolTip::Clear() return ; HMHideTag() ; - m_helpTextRef.Release() ; } #endif // wxUSE_TOOLTIPS