improved memory liberation (explicitly set to NULL after delete)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -201,10 +201,12 @@ void wxMacToolTip::Setup( WindowRef win , wxString text , wxPoint localPosition
|
||||
|
||||
wxMacToolTip::~wxMacToolTip()
|
||||
{
|
||||
if ( m_timer )
|
||||
if ( m_timer ) {
|
||||
delete m_timer ;
|
||||
if ( m_backpict )
|
||||
Clear() ;
|
||||
m_timer = NULL;
|
||||
}
|
||||
if ( m_backpict )
|
||||
Clear() ;
|
||||
}
|
||||
|
||||
const short kTipBorder = 2 ;
|
||||
|
Reference in New Issue
Block a user