summaryrefslogtreecommitdiff
path: root/src/modules/srmm
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-21 11:29:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-21 11:29:29 +0000
commite0aba8402205a98f7d4bbebb599e58d12a9c0a5e (patch)
treeb09341ec784dcbd4ef5c543df4c5d518a78403b9 /src/modules/srmm
parent108d7b1115183f013c95cd0942f10f60aa548897 (diff)
fix for crashes in Srmm icons handler
git-svn-id: http://svn.miranda-ng.org/main/trunk@6150 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/srmm')
-rw-r--r--src/modules/srmm/statusicon.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/srmm/statusicon.cpp b/src/modules/srmm/statusicon.cpp
index 4be925e5eb..c42b7fbe46 100644
--- a/src/modules/srmm/statusicon.cpp
+++ b/src/modules/srmm/statusicon.cpp
@@ -84,10 +84,9 @@ INT_PTR ModifyStatusIcon(WPARAM wParam, LPARAM lParam)
HANDLE hContact = (HANDLE)wParam;
if (hContact == NULL) {
mir_free(p->sid.szModule);
+ mir_free(p->sid.szTooltip);
memcpy(&p->sid, sid, sizeof(p->sid));
p->sid.szModule = mir_strdup(sid->szModule);
-
- mir_free(p->sid.szTooltip);
p->sid.tszTooltip = (sid->flags & MBF_UNICODE) ? mir_u2t(sid->wszTooltip) : mir_a2t(sid->szTooltip);
NotifyEventHooks(hHookIconsChanged, NULL, (LPARAM)p);