From e1db6121679890cb4032144a8c1d05b5effcefc4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 2 Jun 2013 21:23:24 +0000 Subject: minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4867 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgUpdate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 91ef9dd3e3..42d005a047 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -529,14 +529,14 @@ static void CheckUpdates(void *) SERVLIST hashes(50, CompareHashes); if ( ParseHashes(updateUrl, baseUrl, hashes)) { FILELIST *UpdateFiles = new FILELIST(20); - TCHAR *dirname = Utils_ReplaceVarsT(_T("%miranda_path%")); + VARST dirname( _T("%miranda_path%")); ScanFolder(dirname, lstrlen(dirname)+1, 0, baseUrl, hashes, UpdateFiles); - mir_free(dirname); // Show dialog if (UpdateFiles->getCount() == 0) { if ( !opts.bSilent) ShowPopup(0, LPGENT("Plugin Updater"), LPGENT("No updates found."), 2, 0); + delete UpdateFiles; } else CallFunctionAsync(LaunchDialog, UpdateFiles); } -- cgit v1.2.3