git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13386
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxUSE_SOCKETS
#ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
#if wxUSE_SOCKETS
#ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
- #else
- #include <OpenTransport.h>
- #include <OpenTptInternet.h>
+ wxToolTip::RemoveToolTips() ;
#if wxUSE_LOG
// flush the logged messages if any and install a 'safer' log target: the
// default one (wxLogGui) can't be used after the resources are freed just
#if wxUSE_LOG
// flush the logged messages if any and install a 'safer' log target: the
// default one (wxLogGui) can't be used after the resources are freed just
if (wxWinMacWindowList)
delete wxWinMacWindowList ;
if (wxWinMacWindowList)
delete wxWinMacWindowList ;
+ if (wxWinMacControlList)
+ delete wxWinMacControlList ;
+
delete wxPendingEvents;
#if wxUSE_THREADS
delete wxPendingEventsLocker;
delete wxPendingEvents;
#if wxUSE_THREADS
delete wxPendingEventsLocker;
#if wxUSE_SOCKETS
#ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
#if wxUSE_SOCKETS
#ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
- #else
- #include <OpenTransport.h>
- #include <OpenTptInternet.h>
+ wxToolTip::RemoveToolTips() ;
#if wxUSE_LOG
// flush the logged messages if any and install a 'safer' log target: the
// default one (wxLogGui) can't be used after the resources are freed just
#if wxUSE_LOG
// flush the logged messages if any and install a 'safer' log target: the
// default one (wxLogGui) can't be used after the resources are freed just
if (wxWinMacWindowList)
delete wxWinMacWindowList ;
if (wxWinMacWindowList)
delete wxWinMacWindowList ;
+ if (wxWinMacControlList)
+ delete wxWinMacControlList ;
+
delete wxPendingEvents;
#if wxUSE_THREADS
delete wxPendingEventsLocker;
delete wxPendingEvents;
#if wxUSE_THREADS
delete wxPendingEventsLocker;
class wxMacToolTipTimer : wxTimer
{
public:
class wxMacToolTipTimer : wxTimer
{
public:
+ wxMacToolTipTimer() {} ;
wxMacToolTipTimer(wxMacToolTip* tip, int iMilliseconds) ;
wxMacToolTipTimer(wxMacToolTip* tip, int iMilliseconds) ;
+ virtual ~wxMacToolTipTimer() {} ;
void Notify()
{
if ( m_mark == m_tip->GetMark() )
m_tip->Draw() ;
}
void Notify()
{
if ( m_mark == m_tip->GetMark() )
m_tip->Draw() ;
}
protected:
wxMacToolTip* m_tip;
long m_mark ;
protected:
wxMacToolTip* m_tip;
long m_mark ;
- m_position = localPosition ;
+ m_position = localPosition ;
m_label = wxMacMakeMacStringFromPC( text ) ;
m_window = window ;
s_ToolTipWindowRef = window ;
m_label = wxMacMakeMacStringFromPC( text ) ;
m_window = window ;
s_ToolTipWindowRef = window ;
void wxMacToolTip::Clear()
{
m_mark++ ;
void wxMacToolTip::Clear()
{
m_mark++ ;
+ if ( m_timer )
+ {
+ delete m_timer ;
+ m_timer = NULL ;
+ }
class wxMacToolTipTimer : wxTimer
{
public:
class wxMacToolTipTimer : wxTimer
{
public:
+ wxMacToolTipTimer() {} ;
wxMacToolTipTimer(wxMacToolTip* tip, int iMilliseconds) ;
wxMacToolTipTimer(wxMacToolTip* tip, int iMilliseconds) ;
+ virtual ~wxMacToolTipTimer() {} ;
void Notify()
{
if ( m_mark == m_tip->GetMark() )
m_tip->Draw() ;
}
void Notify()
{
if ( m_mark == m_tip->GetMark() )
m_tip->Draw() ;
}
protected:
wxMacToolTip* m_tip;
long m_mark ;
protected:
wxMacToolTip* m_tip;
long m_mark ;
- m_position = localPosition ;
+ m_position = localPosition ;
m_label = wxMacMakeMacStringFromPC( text ) ;
m_window = window ;
s_ToolTipWindowRef = window ;
m_label = wxMacMakeMacStringFromPC( text ) ;
m_window = window ;
s_ToolTipWindowRef = window ;
void wxMacToolTip::Clear()
{
m_mark++ ;
void wxMacToolTip::Clear()
{
m_mark++ ;
+ if ( m_timer )
+ {
+ delete m_timer ;
+ m_timer = NULL ;
+ }