diff options
author | George Hazan <george.hazan@gmail.com> | 2013-05-11 08:32:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-05-11 08:32:38 +0000 |
commit | e0fe91da0455894d26e6d804f9028e0c3efb6d59 (patch) | |
tree | 376a754d928c2842a0a474e8f74cd8ce20f752e8 | |
parent | 1d4d3576ed3268ec809c98da2f262ccc1f094bad (diff) |
memory allocation mismatch
git-svn-id: http://svn.miranda-ng.org/main/trunk@4631 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/modules/srmm/statusicon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/srmm/statusicon.cpp b/src/modules/srmm/statusicon.cpp index 448decdf1a..0915df7d46 100644 --- a/src/modules/srmm/statusicon.cpp +++ b/src/modules/srmm/statusicon.cpp @@ -79,8 +79,9 @@ INT_PTR ModifyStatusIcon(WPARAM wParam, LPARAM lParam) HANDLE hContact = (HANDLE)wParam;
if (hContact == NULL) {
+ mir_free(p->sid.szModule);
memcpy(&p->sid, sid, sizeof(p->sid));
- replaceStr(p->sid.szModule, sid->szModule);
+ 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);
|