Gijs Vermeulen : wmp: Fix memory leak in IWMP[Media|Playlist]::put_name.
Alexandre Julliard
julliard at winehq.org
Fri Aug 9 14:49:32 CDT 2019
Module: wine
Branch: master
Commit: 8cacc16af85d0a2ad7e80513200f189220312273
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8cacc16af85d0a2ad7e80513200f189220312273
Author: Gijs Vermeulen <gijsvrm at codeweavers.com>
Date: Fri Aug 9 19:09:49 2019 +0200
wmp: Fix memory leak in IWMP[Media|Playlist]::put_name.
Signed-off-by: Gijs Vermeulen <gijsvrm at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wmp/player.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/wmp/player.c b/dlls/wmp/player.c
index 03a7d26..729cc81 100644
--- a/dlls/wmp/player.c
+++ b/dlls/wmp/player.c
@@ -1819,6 +1819,7 @@ static HRESULT WINAPI WMPMedia_put_name(IWMPMedia *iface, BSTR name)
if (!name) return E_POINTER;
+ heap_free(This->name);
This->name = heap_strdupW(name);
return S_OK;
}
@@ -2063,6 +2064,7 @@ static HRESULT WINAPI WMPPlaylist_put_name(IWMPPlaylist *iface, BSTR name)
if (!name) return E_POINTER;
+ heap_free(This->name);
This->name = heap_strdupW(name);
return S_OK;
}
More information about the wine-cvs
mailing list