From e0aba8402205a98f7d4bbebb599e58d12a9c0a5e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Sep 2013 11:29:29 +0000 Subject: fix for crashes in Srmm icons handler git-svn-id: http://svn.miranda-ng.org/main/trunk@6150 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/srmm/statusicon.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/srmm/statusicon.cpp') 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); -- cgit v1.2.3