fixed compilation of carbon intf

git-svn-id: trunk@8288 -
This commit is contained in:
mattias 2005-12-10 17:23:07 +00:00
parent 1873565ff2
commit 49a8c3808d

View File

@ -65,7 +65,7 @@ type
class function GetClientBounds(const AWincontrol: TWinControl; var ARect: TRect): Boolean; override;
class function GetClientRect(const AWincontrol: TWinControl; var ARect: TRect): Boolean; override;
class function GetText(const AWinControl: TWinControl; var AText: String): Boolean; override;
class procedure SetBounds(const AWinControl: TWinControl; const ALeft, ATop, AWidth, AHeight: Integer); virtual;
class procedure SetBounds(const AWinControl: TWinControl; const ALeft, ATop, AWidth, AHeight: Integer); override;
class procedure SetText(const AWinControl: TWinControl; const AText: String); override;
end;
@ -122,7 +122,7 @@ begin
GetMem(Str,StrSize);
Result := CFStringGetCString(CFString, Str, StrSize, DEFAULT_CFSTRING_ENCODING);
AText := PChar(Str);
FreeMem(Str);
System.FreeMem(Str);
end;
CFRelease(Pointer(CFString));