aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/API
diff options
context:
space:
mode:
authorGravatar Erik Kessler <erik.kessler1@gmail.com>2017-10-09 19:57:39 -0400
committerGravatar Gil <mcg@google.com>2017-10-09 16:57:39 -0700
commit3dd4aea125fb6e2c3776a9d7ba15a61e074a348a (patch)
tree8c50fbb187d80d44ca9dafeb78361c86663d2238 /Firestore/Source/API
parent532f538ee65a931b80203e7a8abb5ebf22cfad5a (diff)
Release listener references on remove in FSTListenerRegistration (#349)
Diffstat (limited to 'Firestore/Source/API')
-rw-r--r--Firestore/Source/API/FIRListenerRegistration.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Firestore/Source/API/FIRListenerRegistration.m b/Firestore/Source/API/FIRListenerRegistration.m
index 9ce0127..5d3ea8e 100644
--- a/Firestore/Source/API/FIRListenerRegistration.m
+++ b/Firestore/Source/API/FIRListenerRegistration.m
@@ -50,6 +50,8 @@ NS_ASSUME_NONNULL_BEGIN
- (void)remove {
[self.asyncListener mute];
[self.client removeListener:self.internalListener];
+ _internalListener = nil;
+ _asyncListener = nil;
}
@end