mirror of https://github.com/BOINC/boinc.git
fixed minor memory leak
svn path=/trunk/boinc/; revision=881
This commit is contained in:
parent
f1e0a517d0
commit
b0fc0fb3ea
|
@ -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);
|
||||
|
|
|
@ -77,6 +77,7 @@ class CMyApp : public CWinApp
|
|||
{
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
virtual int ExitInstance();
|
||||
};
|
||||
|
||||
//////////
|
||||
|
|
Loading…
Reference in New Issue