dshow: avoid duplicate NULL check before free
Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9e907c040d
commit
bfbffbd7d8
@ -104,13 +104,9 @@ dshow_read_close(AVFormatContext *s)
|
|||||||
if (ctx->device_filter[AudioDevice])
|
if (ctx->device_filter[AudioDevice])
|
||||||
IBaseFilter_Release(ctx->device_filter[AudioDevice]);
|
IBaseFilter_Release(ctx->device_filter[AudioDevice]);
|
||||||
|
|
||||||
if (ctx->device_name[0])
|
|
||||||
av_freep(&ctx->device_name[0]);
|
av_freep(&ctx->device_name[0]);
|
||||||
if (ctx->device_name[1])
|
|
||||||
av_freep(&ctx->device_name[1]);
|
av_freep(&ctx->device_name[1]);
|
||||||
if (ctx->device_unique_name[0])
|
|
||||||
av_freep(&ctx->device_unique_name[0]);
|
av_freep(&ctx->device_unique_name[0]);
|
||||||
if (ctx->device_unique_name[1])
|
|
||||||
av_freep(&ctx->device_unique_name[1]);
|
av_freep(&ctx->device_unique_name[1]);
|
||||||
|
|
||||||
if(ctx->mutex)
|
if(ctx->mutex)
|
||||||
|
Loading…
Reference in New Issue
Block a user