From d6b39a9b031309e8622c71e6a01cda6995e6e241 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Jul 2018 16:40:36 +0300 Subject: fix for dynamic memory allocation --- protocols/IRCG/src/windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/IRCG/src/windows.cpp b/protocols/IRCG/src/windows.cpp index 430388d804..b921af9029 100644 --- a/protocols/IRCG/src/windows.cpp +++ b/protocols/IRCG/src/windows.cpp @@ -573,10 +573,10 @@ bool CQuickDlg::OnInitDialog() } else EnableWindow(GetDlgItem(m_hwnd, IDOK), false); + CMStringA szName(FORMAT, "---- %s ----", Translate("Not listed server")); m_si = new SERVER_INFO; m_si->m_group = mir_strdup(""); - CMStringA szName(FORMAT, "---- %s ----", Translate("Not listed server")); - m_si->m_name = szName.GetBuffer(); + m_si->m_name = szName.Detach(); DBVARIANT dbv; if (!m_proto->getString("ServerName", &dbv)) { -- cgit v1.2.3