diff options
Diffstat (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 3 |
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;
}
|