Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit fc59019

Browse files
committed
fix: err
1 parent 239e7df commit fc59019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/state_handler/state_handler_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ func (s *Handler) SetPlayingInfo(info PlayingInfo) {
122122
if i := image.InitWithContentsOfURL(url); i.ID > 0 {
123123
image = i
124124
s.curArtwork = mediaplayer.MPMediaItemArtwork_alloc().InitWithImage(image)
125+
defer image.Release()
125126
}
126-
defer image.Release()
127127
}
128128
s.l.Unlock()
129129
if s.curArtwork.ID > 0 {

0 commit comments

Comments
 (0)