mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
Cocoa: Fix #40636: TCocoaContext.SetFont() does not update TCocoaFont reference count.
This commit is contained in:
parent
21fc3631d5
commit
c40823e236
@ -1274,7 +1274,9 @@ end;
|
||||
|
||||
procedure TCocoaContext.SetFont(const AValue: TCocoaFont);
|
||||
begin
|
||||
FFont := AValue; // UpdateRefs done within property setter
|
||||
if TCocoaGDIObject.UpdateRefs(FFont, AValue) then
|
||||
FFont := AValue;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCocoaContext.SetPen(const AValue: TCocoaPen);
|
||||
|
Loading…
Reference in New Issue
Block a user