Skip to content

Commit

Permalink
Merge pull request #76 from immobiliare/feature/75-fix-weak-delegate
Browse files Browse the repository at this point in the history
#75: Added weak to HTTPClient's delegate property to avoid memory leak
  • Loading branch information
malcommac authored Dec 7, 2022
2 parents 51697c0 + cd69c88 commit 2be0ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class HTTPClient {
public static let shared = HTTPClient(baseURL: nil)

/// Delegate of the client.
public var delegate: HTTPClientDelegate?
public weak var delegate: HTTPClientDelegate?

/// Base URL used to compose each request.
///
Expand Down

0 comments on commit 2be0ed9

Please sign in to comment.