ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Sun Dec 28 18:16:02 2014 +0100| [beaea2de61c841ac3624ab9d6cd93f6bf2a76b66] | committer: Michael Niedermayer
avdevice/dv1394: Use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=beaea2de61c841ac3624ab9d6cd93f6bf2a76b66 --- libavdevice/dv1394.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/dv1394.c b/libavdevice/dv1394.c index c8241e3..833b65d 100644 --- a/libavdevice/dv1394.c +++ b/libavdevice/dv1394.c @@ -206,7 +206,7 @@ static int dv1394_close(AVFormatContext * context) av_log(context, AV_LOG_ERROR, "Failed to munmap DV1394 ring buffer: %s\n", strerror(errno)); close(dv->fd); - av_free(dv->dv_demux); + av_freep(&dv->dv_demux); return 0; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
