summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-23 16:40:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-23 16:40:36 +0300
commitd6b39a9b031309e8622c71e6a01cda6995e6e241 (patch)
treeb331fb782b85840caa0a4cc70f6ee59db0a5d6ab
parent5b03f8072cc161384adbede7806117c903fdc976 (diff)
fix for dynamic memory allocation
-rw-r--r--protocols/IRCG/src/windows.cpp4
1 files 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)) {