From a21d750e3d96ea33a9039cd6bf95b019e5e66597 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Feb 2013 12:20:10 +0000 Subject: more memory leaks fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@3794 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/extraicons/extraicons.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/extraicons/extraicons.cpp b/src/modules/extraicons/extraicons.cpp index 5974e7fcc3..80187be9af 100644 --- a/src/modules/extraicons/extraicons.cpp +++ b/src/modules/extraicons/extraicons.cpp @@ -368,7 +368,8 @@ INT_PTR ExtraIcon_Register(WPARAM wParam, LPARAM lParam) if (ei->type == EXTRAICON_TYPE_CALLBACK && (ei->ApplyIcon == NULL || ei->RebuildIcons == NULL)) return 0; - TCHAR *desc = Langpack_PcharToTchar(ei->description); + mir_ptr tszDesc( mir_a2t(ei->description)); + TCHAR *desc = TranslateTH(lParam, tszDesc); BaseExtraIcon *extra = GetExtraIconByName(ei->name); if (extra != NULL) { -- cgit v1.2.3