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/vk_options.cpp | |
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/vk_options.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_options.cpp | 4 |
1 files changed, 2 insertions, 2 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;
}
|