Commit 78a8445a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

strmbase: Remove redundant NULL check before CoTaskMemFree().

parent cd8eb244
......@@ -45,11 +45,8 @@ HRESULT WINAPI CopyMediaType(AM_MEDIA_TYPE *dest, const AM_MEDIA_TYPE *src)
void WINAPI FreeMediaType(AM_MEDIA_TYPE * pMediaType)
{
if (pMediaType->pbFormat)
{
CoTaskMemFree(pMediaType->pbFormat);
pMediaType->pbFormat = NULL;
}
CoTaskMemFree(pMediaType->pbFormat);
pMediaType->pbFormat = NULL;
if (pMediaType->pUnk)
{
IUnknown_Release(pMediaType->pUnk);
......
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