From 2eb50028e3c3a69bdcef1c98f13ff237a9777daf Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Sat, 17 Aug 2019 18:50:18 +0200 Subject: [PATCH] wmp: Fix a playlist leak (Valgrind). Signed-off-by: Sven Baars Signed-off-by: Alexandre Julliard --- dlls/wmp/player.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wmp/player.c b/dlls/wmp/player.c index 9ba6684be51..f9df561d2be 100644 --- a/dlls/wmp/player.c +++ b/dlls/wmp/player.c @@ -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); }