summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/PluginUpdater/src/Common.h1
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp3
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;
}