summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jabber_account.cpp3
-rw-r--r--utilities.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/jabber_account.cpp b/jabber_account.cpp
index 836ff03..44c2d0b 100644
--- a/jabber_account.cpp
+++ b/jabber_account.cpp
@@ -53,6 +53,9 @@ HANDLE JabberAccount::getSendHandler()
JabberAccount::JabberAccount()
{
AccountName = NULL;
+ hSendHandler = INVALID_HANDLE_VALUE;
+ AccountNumber = -1;
+ JabberInterface = INVALID_HANDLE_VALUE;
}
JabberAccount::~JabberAccount()
{
diff --git a/utilities.cpp b/utilities.cpp
index b658e57..9886fc3 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -324,7 +324,6 @@ int GetJabberInterface(WPARAM w, LPARAM l) //get interface for all jabber accoun
(*p)->setAccountName(tmp);
}
(*p)->setAccountNumber(a);
- (*p)->setSendHandler(INVALID_HANDLE_VALUE);
a++;
Accounts.push_back(new JabberAccount);
p++;