Fixed freeing of mediatype.

This commit is contained in:
Maarten Lankhorst 2005-05-18 13:25:20 +00:00 committed by Alexandre Julliard
parent 10d48a9464
commit 0caae47658
1 changed files with 1 additions and 1 deletions

View File

@ -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;