summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-16 20:13:36 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-16 20:13:36 +0300
commitb9d979825d5ffa60acfdae58907fdeab1792da86 (patch)
treed8c536b0ef743586e3597cd0ae01e4c811401ea0 /utilities.cpp
parent168521b0baf102e4b84f1c7fc7814c2a9389f638 (diff)
modified: utilities.cppjuick
Diffstat (limited to 'utilities.cpp')
-rw-r--r--utilities.cpp5
1 files changed, 1 insertions, 4 deletions
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;