diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-07 19:55:42 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-07 19:55:42 +0000 |
commit | 57d8ac19ba31e74914fa300aee4d44ef434e4478 (patch) | |
tree | 67b628eed839e9804299b8f1c9126fdb2a463fff /plugins/PluginUpdater/src | |
parent | c112e561e0c157cafa38f475cd5c4338070b6579 (diff) |
PluginUpdater: Fixed more leaks
git-svn-id: http://svn.miranda-ng.org/main/trunk@9419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r-- | plugins/PluginUpdater/src/Common.h | 1 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Common.h b/plugins/PluginUpdater/src/Common.h index adf83efe37..f09188799d 100644 --- a/plugins/PluginUpdater/src/Common.h +++ b/plugins/PluginUpdater/src/Common.h @@ -39,7 +39,6 @@ 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"
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index a7e0995b14..efdb9ebcf3 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -349,11 +349,13 @@ static void DlgUpdateSilent(void *lParam) {
OBJLIST<FILEINFO> &UpdateFiles = *(OBJLIST<FILEINFO> *)lParam;
if (UpdateFiles.getCount() == 0) {
+ delete &UpdateFiles;
return;
}
// 1) If we need to escalate priviledges, launch a stub
if (!PrepareEscalation()) {
+ delete &UpdateFiles;
return;
}
@@ -388,6 +390,7 @@ static void DlgUpdateSilent(void *lParam) Netlib_CloseHandle(nlc);
if (count == 0) {
+ delete &UpdateFiles;
return;
}
|