From fcea54dc0f606c10807fd6b8344e43b547f10d53 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Apr 2015 18:17:37 +0000 Subject: minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@12793 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_chat.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src/jabber_chat.cpp') diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index bb7583fbd5..cf3aa9cb95 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -769,7 +769,7 @@ public: { if (!m_room) return; - TCHAR *text = m_txtReason.GetText(); + ptrT text(m_txtReason.GetText()); HWND hwndList = GetDlgItem(m_hwnd, IDC_CLIST); // invite users from roster @@ -788,10 +788,9 @@ public: // invite others for (int i = 0; i < m_newJids.getCount(); i++) - if (SendMessage(hwndList, CLM_GETCHECKMARK, (WPARAM)m_newJids[i]->hItem, 0)) - InviteUser(m_newJids[i]->jid, text); + if (SendMessage(hwndList, CLM_GETCHECKMARK, (WPARAM)m_newJids[i]->hItem, 0)) + InviteUser(m_newJids[i]->jid, text); - mir_free(text); Close(); } }; -- cgit v1.2.3