* Patch from 7048

git-svn-id: trunk@5535 -
This commit is contained in:
marco 2006-12-03 19:12:11 +00:00
parent 4363f34985
commit f68280e91c

View File

@ -182,12 +182,16 @@ begin
exit;
{$ifndef MSWINDOWS}
Dec (S,WideFirstOff);
Freemem(S);
{$else MSWINDOWS}
if winwidestringalloc then
SysFreeString(S)
else
begin
Dec (S,WideFirstOff);
Freemem(S);
end;
{$endif MSWINDOWS}
FreeMem (S);
S:=Nil;
end;