From 1c44f2df0725c7673b0522121461337270cd47c6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Feb 2013 13:03:09 +0000 Subject: service MS_VARS_FREEMEMORY replaced with the direct call of mir_free git-svn-id: http://svn.miranda-ng.org/main/trunk@3669 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Utils.pas/mirutils.pas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Utils.pas') diff --git a/plugins/Utils.pas/mirutils.pas b/plugins/Utils.pas/mirutils.pas index b71de66708..ce31833846 100644 --- a/plugins/Utils.pas/mirutils.pas +++ b/plugins/Utils.pas/mirutils.pas @@ -72,7 +72,7 @@ uses Messages,dbsettings,common,io,freeimage,syswin; const clGroup = 'Group'; -// Save / Load contact +// Save / Load contact const opt_cproto = 'cproto'; opt_cuid = 'cuid'; @@ -194,7 +194,7 @@ begin end; tmp:=pointer(CallService(MS_VARS_FORMATSTRING,wparam(@tfi),0)); StrDup(result,tmp); - CallService(MS_VARS_FREEMEMORY,wparam(tmp),0); + mir_free(tmp); end else begin @@ -233,7 +233,7 @@ begin end; tmp:=pointer(CallService(MS_VARS_FORMATSTRING,wparam(@tfi),0)); StrDupW(result,tmp); - CallService(MS_VARS_FREEMEMORY,wparam(tmp),0); + mir_free(tmp); end else begin @@ -588,7 +588,7 @@ begin gce.szText.w:=pszText; gce.dwFlags :=GCEF_ADDTOLOG+GC_UNICODE; gce.time :=GetCurrentTime; - + CallServiceSync(MS_GC_EVENT,0,lparam(@gce)); end; @@ -730,7 +730,7 @@ begin if proto<>nil then proto^:=#0; end; - + end; // Import plugin function adaptation -- cgit v1.2.3