mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-06-27 20:36:19 +02: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()
|
try! fetchedResultsController.performFetch()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
|
||||||
|
self.fetchedResultsControllerDelegate.fetchedResultsController = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// MARK: Private
|
// MARK: Private
|
||||||
|
|
||||||
|
|||||||
@@ -198,6 +198,11 @@ public final class ObjectMonitor<T: NSManagedObject> {
|
|||||||
self.lastCommittedAttributes = (self.object?.committedValuesForKeys(nil) as? [String: NSObject]) ?? [:]
|
self.lastCommittedAttributes = (self.object?.committedValuesForKeys(nil) as? [String: NSObject]) ?? [:]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
|
||||||
|
self.fetchedResultsControllerDelegate.fetchedResultsController = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// MARK: Private
|
// MARK: Private
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user