We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f3e6d commit 576e44cCopy full SHA for 576e44c
firestore/src/ios/firestore_ios.cc
@@ -60,10 +60,13 @@ FirestoreInternal::FirestoreInternal(
60
}
61
62
FirestoreInternal::~FirestoreInternal() {
63
- std::lock_guard<std::mutex> lock(listeners_mutex_);
64
- HARD_ASSERT_IOS(listeners_.empty(),
65
- "Expected all listeners to be unregistered by the time "
66
- "FirestoreInternal is destroyed.");
+ {
+ std::lock_guard<std::mutex> lock(listeners_mutex_);
+ HARD_ASSERT_IOS(listeners_.empty(),
+ "Expected all listeners to be unregistered by the time "
67
+ "FirestoreInternal is destroyed.");
68
+ }
69
+ firestore_core_->Dispose();
70
71
72
std::shared_ptr<api::Firestore> FirestoreInternal::CreateFirestore(
0 commit comments