Commit 8cacc16a authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

wmp: Fix memory leak in IWMP[Media|Playlist]::put_name.

parent bfe12dc5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment