mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 19:08:03 +02:00
wince interface: use SysFreeString to release strings allocated with SysAllocStringLen (issue #8947)
git-svn-id: trunk@11204 -
This commit is contained in:
parent
b465403293
commit
bce8d0a4c6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user