mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 12:36:15 +02:00
LCL: increase LCLRefCount during IntfUTF8KeyPress
git-svn-id: trunk@18579 -
This commit is contained in:
parent
8a04802fc6
commit
7571caa3da
@ -4420,7 +4420,12 @@ end;
|
||||
function TWinControl.IntfUTF8KeyPress(var UTF8Key: TUTF8Char;
|
||||
RepeatCount: integer; SystemKey: boolean): boolean;
|
||||
begin
|
||||
Result:=(RepeatCount>0) and (not SystemKey) and DoUTF8KeyPress(UTF8Key);
|
||||
IncLCLRefCount;
|
||||
try
|
||||
Result:=(RepeatCount>0) and (not SystemKey) and DoUTF8KeyPress(UTF8Key);
|
||||
finally
|
||||
DecLCLRefCount;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TWinControl.PaintTo(DC: HDC; X, Y: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user