mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: MacCloud: memory leaks in Cloud Driver clone
This commit is contained in:
parent
0fad673442
commit
30acda2f89
5 changed files with 9 additions and 4 deletions
|
|
@ -52,6 +52,7 @@ var
|
|||
newClient: TAliyunOSSClient;
|
||||
begin
|
||||
newClient:= TAliyunOSSClient.Create( _config );
|
||||
newClient._authSession.Free;
|
||||
newClient._authSession:= TAWSAuthSession( _authSession.clone(newClient) );
|
||||
Result:= newClient;
|
||||
end;
|
||||
|
|
|
|||
|
|
@ -532,7 +532,8 @@ var
|
|||
newClient: TBoxClient;
|
||||
begin
|
||||
newClient:= TBoxClient.Create( _config );
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( self._authSession.clone(newClient) );
|
||||
newClient._authSession.Free;
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( _authSession.clone(newClient) );
|
||||
Result:= newClient;
|
||||
end;
|
||||
|
||||
|
|
|
|||
|
|
@ -647,7 +647,8 @@ var
|
|||
newClient: TDropBoxClient;
|
||||
begin
|
||||
newClient:= TDropBoxClient.Create( _config );
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( self._authSession.clone(newClient) );
|
||||
newClient._authSession.Free;
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( _authSession.clone(newClient) );
|
||||
Result:= newClient;
|
||||
end;
|
||||
|
||||
|
|
|
|||
|
|
@ -548,7 +548,8 @@ var
|
|||
newClient: TOneDriveClient;
|
||||
begin
|
||||
newClient:= TOneDriveClient.Create( _config );
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( self._authSession.clone(newClient) );
|
||||
newClient._authSession.Free;
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( _authSession.clone(newClient) );
|
||||
Result:= newClient;
|
||||
end;
|
||||
|
||||
|
|
|
|||
|
|
@ -529,7 +529,8 @@ var
|
|||
newClient: TYandexClient;
|
||||
begin
|
||||
newClient:= TYandexClient.Create( _config );
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( self._authSession.clone(newClient) );
|
||||
newClient._authSession.Free;
|
||||
newClient._authSession:= TCloudDriverOAuth2Session( _authSession.clone(newClient) );
|
||||
Result:= newClient;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue