mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Self *could* get deallocated here
This commit is contained in:
parent
1e45030a4b
commit
74c75c4f08
@ -113,9 +113,7 @@ class AlbumDetailView: NSViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getAlbumSongs(for album: Album) {
|
func getAlbumSongs(for album: Album) {
|
||||||
App.mpdClient.getAlbumSongs(for: album.mpdAlbum) { [weak self] (mpdSongs: [MPDClient.MPDSong]) in
|
App.mpdClient.getAlbumSongs(for: album.mpdAlbum) { [self] (mpdSongs: [MPDClient.MPDSong]) in
|
||||||
guard let self = self else { return }
|
|
||||||
|
|
||||||
self.dataSource.setAlbumSongs(
|
self.dataSource.setAlbumSongs(
|
||||||
mpdSongs.map { Song(mpdSong: $0) }
|
mpdSongs.map { Song(mpdSong: $0) }
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user