wince interface: use SysFreeString to release strings allocated with SysAllocStringLen (issue #8947)

git-svn-id: trunk@11204 -
This commit is contained in:
vincents 2007-05-25 21:08:29 +00:00
parent b465403293
commit bce8d0a4c6

View File

@ -72,7 +72,7 @@ begin
PWord(textbuf)^ := Word(fLength+1);
SendMessage(fHandle, EM_GETLINE, Index, lparam(textbuf));
Result := WideStringToString(WideString(textbuf));
FreeMem(textbuf);
SysFreeString(textbuf);
end;
end;