diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-21 11:29:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-21 11:29:29 +0000 |
commit | e0aba8402205a98f7d4bbebb599e58d12a9c0a5e (patch) | |
tree | b09341ec784dcbd4ef5c543df4c5d518a78403b9 /src/modules | |
parent | 108d7b1115183f013c95cd0942f10f60aa548897 (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')
-rw-r--r-- | src/modules/srmm/statusicon.cpp | 3 |
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);
|