diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-28 18:16:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-28 18:16:37 +0100 |
commit | a3f6e8c4d926f55456e1f3ca8587c38bf3c82e09 (patch) | |
tree | 1ad0c75bb28c816f41e1a67297707bc72cdfd6cf | |
parent | beaea2de61c841ac3624ab9d6cd93f6bf2a76b66 (diff) | |
download | ffmpeg-a3f6e8c4d926f55456e1f3ca8587c38bf3c82e09.tar.gz |
avdevice/dshow: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavdevice/dshow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 59d0818a49..b20eab679b 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -146,9 +146,9 @@ dshow_read_close(AVFormatContext *s) 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); |