From bacebef9af7acf3220bd829e13d062187985e317 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 1 Feb 2015 15:13:51 +0000 Subject: MSN: Minor leaks fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@11973 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_misc.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'protocols/MSN/src/msn_misc.cpp') diff --git a/protocols/MSN/src/msn_misc.cpp b/protocols/MSN/src/msn_misc.cpp index a34a909d06..2b75d3d88e 100644 --- a/protocols/MSN/src/msn_misc.cpp +++ b/protocols/MSN/src/msn_misc.cpp @@ -611,15 +611,15 @@ void CMsnProto::MSN_SendStatusMessage(const char* msg) } else szFormatEnc = HtmlEncodeUTF8T(_T("{0} - {1}")); - char *szArtist = HtmlEncodeUTF8T(msnCurrentMedia.ptszArtist); - char *szAlbum = HtmlEncodeUTF8T(msnCurrentMedia.ptszAlbum); - char *szTitle = HtmlEncodeUTF8T(msnCurrentMedia.ptszTitle); - char *szTrack = HtmlEncodeUTF8T(msnCurrentMedia.ptszTrack); - char *szYear = HtmlEncodeUTF8T(msnCurrentMedia.ptszYear); - char *szGenre = HtmlEncodeUTF8T(msnCurrentMedia.ptszGenre); - char *szLength = HtmlEncodeUTF8T(msnCurrentMedia.ptszLength); - char *szPlayer = HtmlEncodeUTF8T(msnCurrentMedia.ptszPlayer); - char *szType = HtmlEncodeUTF8T(msnCurrentMedia.ptszType); + char *szArtist = HtmlEncodeUTF8T(msnCurrentMedia.ptszArtist), + *szAlbum = HtmlEncodeUTF8T(msnCurrentMedia.ptszAlbum), + *szTitle = HtmlEncodeUTF8T(msnCurrentMedia.ptszTitle), + *szTrack = HtmlEncodeUTF8T(msnCurrentMedia.ptszTrack), + *szYear = HtmlEncodeUTF8T(msnCurrentMedia.ptszYear), + *szGenre = HtmlEncodeUTF8T(msnCurrentMedia.ptszGenre), + *szLength = HtmlEncodeUTF8T(msnCurrentMedia.ptszLength), + *szPlayer = HtmlEncodeUTF8T(msnCurrentMedia.ptszPlayer), + *szType = HtmlEncodeUTF8T(msnCurrentMedia.ptszType); sz = mir_snprintf(szMsg, SIZEOF(szMsg), "" @@ -640,6 +640,7 @@ void CMsnProto::MSN_SendStatusMessage(const char* msg) mir_free(szLength); mir_free(szPlayer); mir_free(szType); + mir_free(szFormatEnc); } mir_free(msgEnc); -- cgit v1.2.3