From a03937bb912c76af61f04da1c5d5a5e7d5e4d7aa Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 6 Jun 2014 19:37:48 +0000 Subject: Fixed another memory leak when silent updated failed. git-svn-id: http://svn.miranda-ng.org/main/trunk@9415 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Common.h | 7 ++++--- plugins/PluginUpdater/src/DlgUpdate.cpp | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/Common.h b/plugins/PluginUpdater/src/Common.h index c4a58e8a36..adf83efe37 100644 --- a/plugins/PluginUpdater/src/Common.h +++ b/plugins/PluginUpdater/src/Common.h @@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA. #include #include #include +#include #include #include "m_pluginupdater.h" @@ -201,9 +202,9 @@ void __stdcall OpenPluginOptions(void*); BOOL AllowUpdateOnStartup(); void InitTimer(int type = 0); -INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam); -INT_PTR ShowListCommand(WPARAM wParam,LPARAM lParam); -INT_PTR EmptyFolder(WPARAM wParam,LPARAM lParam); +INT_PTR MenuCommand(WPARAM,LPARAM); +INT_PTR ShowListCommand(WPARAM,LPARAM); +INT_PTR EmptyFolder(WPARAM,LPARAM); INT_PTR CALLBACK DlgMsgPop(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 1d5351f519..a7e0995b14 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -378,6 +378,7 @@ static void DlgUpdateSilent(void *lParam) // interrupt update as we require all components to be updated Netlib_CloseHandle(nlc); SkinPlaySound("updatefailed"); + delete &UpdateFiles; return; } count++; -- cgit v1.2.3