From e2bc5a18c4d39923c81c75a6cf66519fac809ef2 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Thu, 7 Apr 2016 17:36:50 +0000 Subject: VKontakte: potential crashfix git-svn-id: http://svn.miranda-ng.org/main/trunk@16605 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_options.cpp | 4 ++-- protocols/VKontakte/src/vk_struct.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/VKontakte') 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) -- cgit v1.2.3