From 57d8ac19ba31e74914fa300aee4d44ef434e4478 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 7 Jun 2014 19:55:42 +0000 Subject: PluginUpdater: Fixed more leaks git-svn-id: http://svn.miranda-ng.org/main/trunk@9419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgUpdate.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp') 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 &UpdateFiles = *(OBJLIST *)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; } -- cgit v1.2.3