summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/DlgUpdate.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-06-07 19:55:42 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-06-07 19:55:42 +0000
commit57d8ac19ba31e74914fa300aee4d44ef434e4478 (patch)
tree67b628eed839e9804299b8f1c9126fdb2a463fff /plugins/PluginUpdater/src/DlgUpdate.cpp
parentc112e561e0c157cafa38f475cd5c4338070b6579 (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/DlgUpdate.cpp')
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}