Skip to content

Commit

Permalink
fix: remove weak references from location subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed May 6, 2021
1 parent 7c0b0ba commit 521149d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -20,7 +20,7 @@ final class AuthorizationSubscription <S: Subscriber>: NSObject,
typealias Failure = Never

var subscriber: S?
private weak var delegate: SubscriptionAuthorizationDelegate?
private var delegate: SubscriptionAuthorizationDelegate?
private let authorizationType: CLLocationManager.AuthorizationType

init(
Expand Down
2 changes: 1 addition & 1 deletion Sources/ExtensionKit/CoreLocation/LocationPublisher.swift
Expand Up @@ -17,7 +17,7 @@ final class LocationSubscription <S: Subscriber>:
S.Failure == Error {

var subscriber: S?
private weak var publisherDelegate: PublisherLocationDelegate?
private var publisherDelegate: PublisherLocationDelegate?

init(subscriber: S?, delegate: PublisherLocationDelegate?) {
self.subscriber = subscriber
Expand Down

0 comments on commit 521149d

Please sign in to comment.