From 532867c22a80206120cd461d673775fdaafbe4d9 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Fri, 1 Apr 2016 17:18:40 +0000 Subject: VKontakte: memleaks fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16567 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_chats.cpp | 1 - protocols/VKontakte/src/vk_dialogs.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols') 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); } -- cgit v1.2.3