diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c index c67893973ee..9f3d9ddcd08 100644 --- a/dlls/quartz/memallocator.c +++ b/dlls/quartz/memallocator.c @@ -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;