IBaseFilter_Release(ctx->device_filter[AudioDevice]);
if (ctx->device_name[0])
- av_free(ctx->device_name[0]);
+ av_freep(&ctx->device_name[0]);
if (ctx->device_name[1])
- av_free(ctx->device_name[1]);
+ av_freep(&ctx->device_name[1]);
if(ctx->mutex)
CloseHandle(ctx->mutex);
}
fail1:
- if (buf)
- av_free(buf);
+ av_free(buf);
if (bag)
IPropertyBag_Release(bag);
IMoniker_Release(m);
}
end:
IAMStreamConfig_Release(config);
- if (caps)
- av_free(caps);
+ av_free(caps);
if (pformat_set)
*pformat_set = format_set;
}