summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
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;