1
1
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:
Daniel Barber 2019-05-10 15:31:07 -04:00
parent 53b90a4a4a
commit edcfe49b19
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -30,6 +30,10 @@ class AlbumViewController: NSViewController,
albumCollectionView.dataSource = dataSource
}
deinit {
App.store.unsubscribe(self)
}
override func viewWillLayout() {
super.viewWillLayout()