Skip to content

Commit

Permalink
Merge pull request #91 from laprado/master
Browse files Browse the repository at this point in the history
fix issue Identifier idents no member DisposeOf #90
  • Loading branch information
viniciussanchez authored Apr 7, 2022
2 parents f3b7519 + 4025c5f commit 00748e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/RESTRequest4D.Request.Indy.pas
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function TRequestIndy.AddBody(const AContent: TStream; const AOwns: Boolean): IR
finally
if AOwns then
begin
{$IFDEF MSWINDOWS OR FPC}
{$IF DEFINED(MSWINDOWS) OR DEFINED(FPC)}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
Expand All @@ -126,7 +126,7 @@ function TRequestIndy.AddCookies(const ACookies: TStrings): IRequest;
FIdHTTP.CookieManager := TIdCookieManager.Create(FIdHTTP);
FIdHTTP.CookieManager.AddServerCookies(ACookies, LURI);
finally
{$IFDEF MSWINDOWS OR FPC}
{$IF DEFINED(MSWINDOWS) OR DEFINED(FPC)}
ACookies.Free;
{$ELSE}
ACookies.DisposeOf;
Expand Down Expand Up @@ -388,7 +388,7 @@ function TRequestIndy.AddBody(const AContent: TObject; const AOwns: Boolean): IR
LJSONObject.Free;
if AOwns then
begin
{$IFDEF MSWINDOWS OR FPC}
{$IF DEFINED(MSWINDOWS) OR DEFINED(FPC)}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
Expand All @@ -413,7 +413,7 @@ function TRequestIndy.AddBody(const AContent: TJSONArray; const AOwns: Boolean):
{$ENDIF}
if AOwns then
begin
{$IFDEF MSWINDOWS OR FPC}
{$IF DEFINED(MSWINDOWS) OR DEFINED(FPC)}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
Expand All @@ -430,7 +430,7 @@ function TRequestIndy.AddBody(const AContent: TJSONObject; const AOwns: Boolean)
{$ENDIF}
if AOwns then
begin
{$IFDEF MSWINDOWS OR FPC}
{$IF DEFINED(MSWINDOWS) OR DEFINED(FPC)}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
Expand Down

0 comments on commit 00748e5

Please sign in to comment.