mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Unsubscribe from the store if the view is deallocated
This commit is contained in:
parent
53b90a4a4a
commit
edcfe49b19
@ -30,6 +30,10 @@ class AlbumViewController: NSViewController,
|
|||||||
albumCollectionView.dataSource = dataSource
|
albumCollectionView.dataSource = dataSource
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
App.store.unsubscribe(self)
|
||||||
|
}
|
||||||
|
|
||||||
override func viewWillLayout() {
|
override func viewWillLayout() {
|
||||||
super.viewWillLayout()
|
super.viewWillLayout()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user