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:
@@ -92,8 +92,10 @@ bool wxTimer::IsRunning() const
|
||||
wxTimer::~wxTimer()
|
||||
{
|
||||
Stop();
|
||||
delete m_info ;
|
||||
m_info = NULL ;
|
||||
if (m_info != NULL) {
|
||||
delete m_info ;
|
||||
m_info = NULL ;
|
||||
}
|
||||
int index = gTimersInProcess.Index( this ) ;
|
||||
if ( index != wxNOT_FOUND )
|
||||
gTimersInProcess.RemoveAt( index ) ;
|
||||
|
||||
Reference in New Issue
Block a user