diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-30 17:45:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-30 17:45:03 +0000 |
commit | d77850e44b6d38380c08896ba5f2e043c7c69fb2 (patch) | |
tree | 63b253f7fa693601210886a4cac2a1713884e866 /plugins/StatusPlugins/commonstatus.cpp | |
parent | 12053939f5b0c757a2b099e90fc0b7371e8817e1 (diff) |
mir_free won again!
git-svn-id: http://svn.miranda-ng.org/main/trunk@701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/commonstatus.cpp')
-rw-r--r-- | plugins/StatusPlugins/commonstatus.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/StatusPlugins/commonstatus.cpp b/plugins/StatusPlugins/commonstatus.cpp index d1e214b307..c2cc820e9b 100644 --- a/plugins/StatusPlugins/commonstatus.cpp +++ b/plugins/StatusPlugins/commonstatus.cpp @@ -335,11 +335,9 @@ static void SetStatusMsg(PROTOCOLSETTINGEX *ps, int newstatus) TCHAR* szFormattedMsg = variables_parsedup(tszMsg, ps->tszAccName, NULL);
if (szFormattedMsg != NULL) {
- mir_free( tszMsg );
- tszMsg = mir_tstrdup( szFormattedMsg );
- free( szFormattedMsg );
+ mir_free(tszMsg);
+ tszMsg = szFormattedMsg;
}
-
}
log_debugA("CommonStatus sets status message for %s directly", ps->szName);
if ( CALLSERVICE_NOTFOUND == CallProtoService(ps->szName, PS_SETAWAYMSGT, newstatus, (LPARAM)tszMsg )) {
|