summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2016-04-01 17:18:40 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2016-04-01 17:18:40 +0000
commit532867c22a80206120cd461d673775fdaafbe4d9 (patch)
treeb103a5b7ccad78b10c40507b9e448712476bebb6
parenta2be5d69812652e513b604e393a057626ff52104 (diff)
VKontakte: memleaks fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16567 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp1
-rw-r--r--protocols/VKontakte/src/vk_dialogs.cpp8
2 files changed, 4 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index f486af926a..f0440809d5 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -560,7 +560,6 @@ LPTSTR CVkProto::ChangeChatTopic(CVkChatInfo *cc)
void CVkProto::LogMenuHook(CVkChatInfo *cc, GCHOOK *gch)
{
- MCONTACT hContact;
if (!IsOnline())
return;
diff --git a/protocols/VKontakte/src/vk_dialogs.cpp b/protocols/VKontakte/src/vk_dialogs.cpp
index 9fd1d333c2..17a42b9cd4 100644
--- a/protocols/VKontakte/src/vk_dialogs.cpp
+++ b/protocols/VKontakte/src/vk_dialogs.cpp
@@ -137,9 +137,9 @@ void CVkWallPostForm::OnDestroy()
void CVkWallPostForm::On_btnShare_Click(CCtrlButton*)
{
- m_param->ptszUrl = mir_tstrdup(m_edtUrl.GetText());
- m_param->ptszMsg = mir_tstrdup(m_edtMsg.GetText());
- m_param->bFriendsOnly = m_cbOnlyForFriends.GetState();
+ m_param->ptszUrl = m_edtUrl.GetText();
+ m_param->ptszMsg = m_edtMsg.GetText();
+ m_param->bFriendsOnly = m_cbOnlyForFriends.GetState() != 0;
EndDialog(m_hwnd, 1);
}
@@ -217,7 +217,7 @@ void CVkGCCreateForm::btnOk_OnOk(CCtrlButton*)
bool bRes = !szUIds.IsEmpty();
if (bRes)
- m_proto->CreateNewChat(szUIds, m_edtTitle.GetText());
+ m_proto->CreateNewChat(szUIds, ptrT(m_edtTitle.GetText()));
EndDialog(m_hwnd, bRes);
}