summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-06-06 19:37:48 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-06-06 19:37:48 +0000
commita03937bb912c76af61f04da1c5d5a5e7d5e4d7aa (patch)
tree720ecb2afaf71eeac2668c4092146efd152de3a1 /plugins/PluginUpdater/src
parentf96ab83fc3a69d2bbb6c56e33265a60bf9163add (diff)
Fixed another memory leak when silent updated failed.
git-svn-id: http://svn.miranda-ng.org/main/trunk@9415 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r--plugins/PluginUpdater/src/Common.h7
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp1
2 files changed, 5 insertions, 3 deletions
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 <m_hotkeys.h>
#include <m_netlib.h>
#include <m_icolib.h>
+#include <m_skin.h>
#include <win2k.h>
#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++;