From b0fc0fb3ea5d289575320169463daf0fb12fca21 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Fri, 7 Feb 2003 19:28:40 +0000 Subject: [PATCH] fixed minor memory leak svn path=/trunk/boinc/; revision=881 --- client/win/wingui_mainwindow.cpp | 9 ++++++++- client/win/wingui_mainwindow.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/client/win/wingui_mainwindow.cpp b/client/win/wingui_mainwindow.cpp index b8085596d6..863756d7ae 100755 --- a/client/win/wingui_mainwindow.cpp +++ b/client/win/wingui_mainwindow.cpp @@ -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); diff --git a/client/win/wingui_mainwindow.h b/client/win/wingui_mainwindow.h index 85871d178d..d1723848d0 100755 --- a/client/win/wingui_mainwindow.h +++ b/client/win/wingui_mainwindow.h @@ -77,6 +77,7 @@ class CMyApp : public CWinApp { public: virtual BOOL InitInstance(); + virtual int ExitInstance(); }; //////////