From b9d979825d5ffa60acfdae58907fdeab1792da86 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 16 Aug 2010 20:13:36 +0300 Subject: modified: utilities.cpp --- utilities.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'utilities.cpp') diff --git a/utilities.cpp b/utilities.cpp index 99c6603..5b8649d 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -44,8 +44,7 @@ int GetJabberInterface(WPARAM, LPARAM) //get interface for all jabber accounts, (*p)->setAccountNumber(0); for(int i = 0; i < count; i++) //get only jabber accounts from all accounts { - char *tmp = mir_u2a(accounts[i]->tszAccountName); - IJabberInterface *JIftmp = getJabberApi(tmp); + IJabberInterface *JIftmp = getJabberApi(accounts[i]->szModuleName); int a = 0; if(JIftmp) { @@ -59,8 +58,6 @@ int GetJabberInterface(WPARAM, LPARAM) //get interface for all jabber accounts, p++; Accounts.push_back(new JabberAccount); } - mir_free(tmp); - //should i free JIftmp ? } Accounts.pop_back(); return 0; -- cgit v1.2.3