Commit b5a7853b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

quartz: Remove redundant NULL checks before CoTaskMemFree().

parent 69039f06
......@@ -349,11 +349,8 @@ static HRESULT WINAPI AVIDec_BreakConnect(TransformFilter *tf, PIN_DIRECTION dir
{
if (This->hvid)
ICClose(This->hvid);
if (This->pBihIn)
CoTaskMemFree(This->pBihIn);
if (This->pBihOut)
CoTaskMemFree(This->pBihOut);
CoTaskMemFree(This->pBihIn);
CoTaskMemFree(This->pBihOut);
This->hvid = NULL;
This->pBihIn = NULL;
This->pBihOut = NULL;
......
......@@ -609,8 +609,7 @@ static void FM2_DeleteRegFilter(REGFILTER2 * prf2)
for (i = 0; i < prf2->u.s2.cPins2; i++)
{
UINT j;
if (prf2->u.s2.rgPins2[i].clsPinCategory)
CoTaskMemFree((LPVOID)prf2->u.s2.rgPins2[i].clsPinCategory);
CoTaskMemFree((void*)prf2->u.s2.rgPins2[i].clsPinCategory);
for (j = 0; j < prf2->u.s2.rgPins2[i].nMediaTypes; j++)
{
......
......@@ -589,8 +589,7 @@ static HRESULT MPEGSplitter_pre_connect(IPin *iface, IPin *pConnectPin, ALLOCATO
if (FAILED(hr))
{
if (amt.pbFormat)
CoTaskMemFree(amt.pbFormat);
CoTaskMemFree(amt.pbFormat);
ERR("Could not create pin for MPEG audio stream (%x)\n", hr);
break;
}
......
......@@ -528,8 +528,7 @@ static void test_parse_filter_data(void)
ok(pRegFilter->dwMerit == 0x5fffff,"Incorrect merit returned\n");
out:
if (pRegFilter)
CoTaskMemFree(pRegFilter);
CoTaskMemFree(pRegFilter);
if (psa)
{
SafeArrayUnaccessData(psa);
......
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