fixed minor memory leak

svn path=/trunk/boinc/; revision=881
This commit is contained in:
Eric Heien 2003-02-07 19:28:40 +00:00
parent f1e0a517d0
commit b0fc0fb3ea
2 changed files with 9 additions and 1 deletions

View File

@ -84,6 +84,13 @@ BOOL CMyApp::InitInstance()
return TRUE;
}
int CMyApp::ExitInstance()
{
m_pMainWnd->DestroyWindow();
return 0;
}
/////////////////////////////////////////////////////////////////////////
// CMainWindow message map and member functions
@ -1280,7 +1287,7 @@ void CMainWindow::OnCommandExit()
// quit
gstate.cleanup_and_exit();
PostQuitMessage(0);
KillTimer(ID_TIMER);
KillTimer(m_nTimerID);
// status icon in taskbar
SetStatusIcon(ICON_OFF);

View File

@ -77,6 +77,7 @@ class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
};
//////////