diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-05 12:26:57 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-05 12:26:57 +0000 |
commit | c260565715f1f9c2c91ca4306096470768e2c87f (patch) | |
tree | 2a828a7fa7fcf96929f56605b8b63770844f2f94 /protocols/SkypeWeb/src/skype_login.cpp | |
parent | a925946012307bdea14ce13fa533bdb58d852438 (diff) |
SkypeWeb: Memleaks fix.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14012 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_login.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_login.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index c68570f507..a6e26bc53c 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -84,9 +84,9 @@ void CSkypeProto::OnLoginOAuth(const NETLIBHTTPREQUEST *response) void CSkypeProto::OnLoginSuccess()
{
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_SUCCESS, NULL, 0);
- SelfSkypeName = getStringA(SKYPE_SETTINGS_ID);
- TokenSecret = getStringA("TokenSecret");
- Server = getStringA("Server") != NULL ? getStringA("Server") : SKYPE_ENDPOINTS_HOST;
+ replaceStr(SelfSkypeName, getStringA(SKYPE_SETTINGS_ID));
+ replaceStr(TokenSecret, getStringA("TokenSecret"));
+ replaceStr(Server, getStringA("Server") != NULL ? getStringA("Server") : SKYPE_ENDPOINTS_HOST);
SendRequest(new CreateEndpointRequest(TokenSecret, Server), &CSkypeProto::OnEndpointCreated);
PushRequest(new GetProfileRequest(TokenSecret), &CSkypeProto::LoadProfile);
@@ -155,8 +155,8 @@ void CSkypeProto::OnEndpointCreated(const NETLIBHTTPREQUEST *response) }
}
- RegToken = getStringA("registrationToken");
- EndpointId = getStringA("endpointId");
+ replaceStr(RegToken, getStringA("registrationToken"));
+ replaceStr(EndpointId, getStringA("endpointId"));
SendRequest(new CreateSubscriptionsRequest(RegToken, Server), &CSkypeProto::OnSubscriptionsCreated);
SendRequest(new CreateTrouterRequest(), &CSkypeProto::OnCreateTrouter);
}
|