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:
Sven Baars 2019-08-17 18:50:18 +02:00 committed by Alexandre Julliard
parent 2a88c53a9f
commit 2eb50028e3
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}