summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-28 18:16:37 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-28 18:16:37 +0100
commita3f6e8c4d926f55456e1f3ca8587c38bf3c82e09 (patch)
tree1ad0c75bb28c816f41e1a67297707bc72cdfd6cf /libavdevice
parentbeaea2de61c841ac3624ab9d6cd93f6bf2a76b66 (diff)
avdevice/dshow: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dshow.c4
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);