Commit 9c3a8693 authored by Michael Niedermayer's avatar Michael Niedermayer

avdevice/dshow: Remove unneeded NULL checks

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a3f6e8c4
......@@ -294,8 +294,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
}
fail1:
if (buf)
av_free(buf);
av_free(buf);
if (bag)
IPropertyBag_Release(bag);
IMoniker_Release(m);
......@@ -458,8 +457,7 @@ next:
}
end:
IAMStreamConfig_Release(config);
if (caps)
av_free(caps);
av_free(caps);
if (pformat_set)
*pformat_set = format_set;
}
......
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