summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-10 20:58:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-10 20:58:49 +0300
commitbcb22cf4cc388db65cfd875191d33110a312aa53 (patch)
treea2f8566907c108da0aad07b551d217636bad1098 /plugins
parent6904626a1a26b69c9f23e9f104ee1d3ee9a93bc6 (diff)
crash fix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/templates.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/templates.cpp b/plugins/TabSRMM/src/templates.cpp
index 0c40f44129..b168691a1d 100644
--- a/plugins/TabSRMM/src/templates.cpp
+++ b/plugins/TabSRMM/src/templates.cpp
@@ -125,8 +125,6 @@ CTemplateEditDlg::CTemplateEditDlg(BOOL _rtl, HWND hwndParent) :
{
SetParent(hwndParent);
- m_pLog = new CLogWindow(*this);
-
m_pContainer = new TContainerData();
m_pContainer->LoadOverrideTheme();
tSet = rtl ? m_pContainer->m_rtl_templates : m_pContainer->m_ltr_templates;
@@ -145,6 +143,8 @@ CTemplateEditDlg::CTemplateEditDlg(BOOL _rtl, HWND hwndParent) :
bool CTemplateEditDlg::OnInitDialog()
{
+ m_pLog = new CLogWindow(*this);
+
// set hContact to the first found contact so that we can use the Preview window properly
// also, set other parameters needed by the streaming function to display events
m_hContact = db_find_first();