diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-04-07 17:36:50 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-04-07 17:36:50 +0000 |
commit | e2bc5a18c4d39923c81c75a6cf66519fac809ef2 (patch) | |
tree | 9d48d79c6888ec8c16ff0056e98570e1e396c843 /protocols/VKontakte/src | |
parent | 01bac185867775eeccb19d5dd41c4ab6347c35bc (diff) |
VKontakte: potential crashfix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16605 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_options.cpp | 4 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_struct.cpp | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_options.cpp b/protocols/VKontakte/src/vk_options.cpp index abbb3e8387..f4334d0b1c 100644 --- a/protocols/VKontakte/src/vk_options.cpp +++ b/protocols/VKontakte/src/vk_options.cpp @@ -60,7 +60,7 @@ void CVkAccMgrForm::OnApply() if (bPassChanged) {
T2Utf szRawPasswd(ptszNewPass);
m_proto->setString("Password", szRawPasswd);
- pass_ptrA pszPass(szRawPasswd);
+ pass_ptrA pszPass(szRawPasswd.detach());
m_ptszOldPass = ptszNewPass;
}
@@ -218,7 +218,7 @@ void CVkOptionAccountForm::OnApply() if (bPassChanged) {
T2Utf szRawPasswd(ptszNewPass);
m_proto->setString("Password", szRawPasswd);
- pass_ptrA pszPass(szRawPasswd);
+ pass_ptrA pszPass(szRawPasswd.detach());
m_ptszOldPass = ptszNewPass;
}
diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp index 779aab9641..ceaa13c88d 100644 --- a/protocols/VKontakte/src/vk_struct.cpp +++ b/protocols/VKontakte/src/vk_struct.cpp @@ -239,7 +239,6 @@ CVKOptions::CVKOptions(PROTO_INTERFACE *proto) : ReloadStrings();
}
-
void CVKOptions::ReloadStrings()
{
if (!m_proto)
|