diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-02 21:23:24 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-02 21:23:24 +0000 |
commit | e1db6121679890cb4032144a8c1d05b5effcefc4 (patch) | |
tree | 68004a582b070ddcf67b4c8026378dd1cda7a175 /plugins | |
parent | 885a3fff9be755485bdcabc0a48b4e399f0b89d8 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4867 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 4 |
1 files 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);
}
|