mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 20:20:48 +00:00
strmbase: Remove redundant NULL check before CoTaskMemFree().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cd8eb2445e
commit
78a8445a2a
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue