From 98ecab59cd29c9b45026d61aa98dcfb87ef5bd2d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Jun 2012 14:10:46 +0000 Subject: fixes fpr memleaks etc git-svn-id: http://svn.miranda-ng.org/main/trunk@472 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/toolbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TopToolBar') diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp index 94131d4c62..c5d2d59551 100644 --- a/plugins/TopToolBar/toolbar.cpp +++ b/plugins/TopToolBar/toolbar.cpp @@ -122,10 +122,10 @@ void InsertLBut(int i) ttb.hIconUp = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_RUN), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); ttb.dwFlags = TTBBF_VISIBLE|TTBBF_ISLBUTTON; ttb.pszService = TTB_LAUNCHSERVICE; - ttb.name = _strdup(Translate("Default")); - ttb.program = _tcsdup( _T("Execute Path")); + ttb.name = LPGEN("Default"); + ttb.program = _T("Execute Path"); ttb.wParamDown = i; - ttb.lParamDown = TTBAddButton(( WPARAM )&ttb, 0);; + ttb.lParamDown = TTBAddButton(( WPARAM )&ttb, 0); CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM(TTBO_ALLDATA, ttb.lParamDown), (LPARAM)&ttb); } -- cgit v1.2.3