Cocoa: Fix memory leak in TCocoaWSCustomPage.SetProperties()

This commit is contained in:
rich2014 2023-12-02 00:29:54 +08:00
parent be1dd4686a
commit 25c7f3c141

View File

@ -627,7 +627,7 @@ begin
// hint
if ACustomPage.ShowHint then lHintStr := ACustomPage.Hint
else lHintStr := '';
ACocoaControl.setToolTip(NSStringUTF8(lHintStr));
ACocoaControl.setToolTip(StrToNSString(lHintStr));
end;
class procedure TCocoaWSCustomPage.SetBounds(const AWinControl: TWinControl;