summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/srmm/statusicon.cpp3
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);