mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +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);
|
PWord(textbuf)^ := Word(fLength+1);
|
||||||
SendMessage(fHandle, EM_GETLINE, Index, lparam(textbuf));
|
SendMessage(fHandle, EM_GETLINE, Index, lparam(textbuf));
|
||||||
Result := WideStringToString(WideString(textbuf));
|
Result := WideStringToString(WideString(textbuf));
|
||||||
FreeMem(textbuf);
|
SysFreeString(textbuf);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user