From 8b6824e3ec3ed7340db33bcbe592321b6afb0a00 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Sep 2013 13:37:19 +0000 Subject: - warning fixes; - memleak fixes; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@6154 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AssocMgr/src/reg.cpp | 54 +++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'plugins/AssocMgr') diff --git a/plugins/AssocMgr/src/reg.cpp b/plugins/AssocMgr/src/reg.cpp index be921d8c3a..c285c65221 100644 --- a/plugins/AssocMgr/src/reg.cpp +++ b/plugins/AssocMgr/src/reg.cpp @@ -535,37 +535,39 @@ static void DeleteRegTreeBackup(const char *pszSubKey,const char *pszDbPrefix) void CleanupRegTreeBackupSettings(void) { + /* delete old bak_* settings and try to restore backups */ int nSettingsCount; char **ppszSettings; - char *pszClassName,*pszBuf,*pszFileExt; - int i,j; - - /* delete old bak_* settings and try to restore backups */ - if (EnumDbPrefixSettings("AssocMgr","bak_",&ppszSettings,&nSettingsCount)) { - for(i=0;i