wmp: Fix a playlist leak (Valgrind).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a88c53a9f
commit
2eb50028e3
|
@ -2258,6 +2258,8 @@ void destroy_player(WindowsMediaPlayer *wmp)
|
|||
IWMPControls_stop(&wmp->IWMPControls_iface);
|
||||
if (wmp->media)
|
||||
IWMPMedia_Release(&wmp->media->IWMPMedia_iface);
|
||||
if (wmp->playlist)
|
||||
IWMPPlaylist_Release(&wmp->playlist->IWMPPlaylist_iface);
|
||||
DestroyWindow(wmp->msg_window);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue