diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-30 22:17:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-30 22:17:19 +0000 |
commit | efe64be035fa04d5db79e75b8d2ce227c96e0c67 (patch) | |
tree | 1fdb7206764a5c1353c0acaefd08742e7f44eba3 /protocols/JabberG/src | |
parent | aeaf1f0f88bdf9ffdac3bd9bb080b858ee180154 (diff) |
fix for the memory allocation conflict
git-svn-id: http://svn.miranda-ng.org/main/trunk@11687 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_xstatus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_xstatus.cpp b/protocols/JabberG/src/jabber_xstatus.cpp index 4826a73d42..7f104f46d5 100644 --- a/protocols/JabberG/src/jabber_xstatus.cpp +++ b/protocols/JabberG/src/jabber_xstatus.cpp @@ -612,7 +612,7 @@ CPepMood::CPepMood(CJabberProto *proto) : CPepMood::~CPepMood()
{
- if (m_text) mir_free(m_text);
+ mir_free(m_text);
}
void CPepMood::ProcessItems(const TCHAR *from, HXML itemsNode)
@@ -1425,7 +1425,7 @@ INT_PTR __cdecl CJabberProto::OnSetXStatusEx(WPARAM, LPARAM lParam) int status = (pData->flags & CSSF_MASK_STATUS) ? *pData->status : pepMood->m_mode;
if (status >= 0 && status < SIZEOF(g_arrMoods)) {
pepMood->m_mode = status;
- pepMood->m_text = (pData->flags & CSSF_MASK_MESSAGE) ? JabberStrFixLines(pData->ptszMessage) : _T("");
+ pepMood->m_text = (pData->flags & CSSF_MASK_MESSAGE) ? JabberStrFixLines(pData->ptszMessage) : NULL;
pepMood->LaunchSetGui(1);
return 0;
}
|