mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-18 15:07:00 +01:00
just a safety measure for the rare case that the FRC delegate gets released earlier than the FRC
This commit is contained in:
@@ -924,6 +924,11 @@ public final class ListMonitor<T: NSManagedObject> {
|
||||
try! fetchedResultsController.performFetch()
|
||||
}
|
||||
|
||||
deinit {
|
||||
|
||||
self.fetchedResultsControllerDelegate.fetchedResultsController = nil
|
||||
}
|
||||
|
||||
|
||||
// MARK: Private
|
||||
|
||||
|
||||
@@ -198,6 +198,11 @@ public final class ObjectMonitor<T: NSManagedObject> {
|
||||
self.lastCommittedAttributes = (self.object?.committedValuesForKeys(nil) as? [String: NSObject]) ?? [:]
|
||||
}
|
||||
|
||||
deinit {
|
||||
|
||||
self.fetchedResultsControllerDelegate.fetchedResultsController = nil
|
||||
}
|
||||
|
||||
|
||||
// MARK: Private
|
||||
|
||||
|
||||
Reference in New Issue
Block a user