Commit 0caae476 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

Fixed freeing of mediatype.

parent 10d48a94
......@@ -659,7 +659,7 @@ static HRESULT WINAPI StdMediaSample2_SetMediaType(IMediaSample2 * iface, AM_MED
TRACE("(%p)\n", pMediaType);
if (This->props.pMediaType)
DeleteMediaType(This->props.pMediaType);
FreeMediaType(This->props.pMediaType);
else if (!(This->props.pMediaType = CoTaskMemAlloc(sizeof(AM_MEDIA_TYPE))))
return E_OUTOFMEMORY;
......
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