mwxLog was leaked - fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-24 00:20:45 +00:00
parent ab70fb1de1
commit 66b3609e6a
2 changed files with 4 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ GridFrame::GridFrame()
wxTE_MULTILINE );
logger = new wxLogTextCtrl( logWin );
logger->SetActiveTarget( logger );
m_logOld = logger->SetActiveTarget( logger );
logger->SetTimestamp( NULL );
// this will create a grid and, by default, an associated grid
@@ -253,6 +253,7 @@ GridFrame::GridFrame()
GridFrame::~GridFrame()
{
delete wxLog::SetActiveTarget(m_logOld);
}

View File

@@ -108,6 +108,8 @@ public:
ID_TESTFUNC
};
wxLog *m_logOld;
DECLARE_EVENT_TABLE()
};