LCL: increase LCLRefCount during IntfUTF8KeyPress

git-svn-id: trunk@18579 -
This commit is contained in:
mattias 2009-02-05 12:29:15 +00:00
parent 8a04802fc6
commit 7571caa3da

View File

@ -4420,7 +4420,12 @@ end;
function TWinControl.IntfUTF8KeyPress(var UTF8Key: TUTF8Char; function TWinControl.IntfUTF8KeyPress(var UTF8Key: TUTF8Char;
RepeatCount: integer; SystemKey: boolean): boolean; RepeatCount: integer; SystemKey: boolean): boolean;
begin 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; end;
procedure TWinControl.PaintTo(DC: HDC; X, Y: Integer); procedure TWinControl.PaintTo(DC: HDC; X, Y: Integer);