summaryrefslogtreecommitdiff
path: root/plugins/Utils.pas/mirutils.pas
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-02-21 13:03:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-02-21 13:03:09 +0000
commit1c44f2df0725c7673b0522121461337270cd47c6 (patch)
tree73979ab4ed3fcdf367ccce10ba1811def67d69b6 /plugins/Utils.pas/mirutils.pas
parent1f59d862f624b14135eaf16899d3bc617fa3ff1e (diff)
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
Diffstat (limited to 'plugins/Utils.pas/mirutils.pas')
-rw-r--r--plugins/Utils.pas/mirutils.pas10
1 files changed, 5 insertions, 5 deletions
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