Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/wmp/player.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/wmp/player.c b/dlls/wmp/player.c index c547dad1b3..9ba6684be5 100644 --- a/dlls/wmp/player.c +++ b/dlls/wmp/player.c @@ -2300,6 +2300,7 @@ HRESULT create_media_from_url(BSTR url, double duration, IWMPMedia **ppMedia) if (FAILED(hr)) { heap_free(name_dup); + IWMPMedia_Release(&media->IWMPMedia_iface); return hr; } hr = IUri_GetPath(uri, &path); @@ -2307,6 +2308,7 @@ HRESULT create_media_from_url(BSTR url, double duration, IWMPMedia **ppMedia) { heap_free(name_dup); IUri_Release(uri); + IWMPMedia_Release(&media->IWMPMedia_iface); return hr; }