avdevice/iec61883: free the private context at the end
authorJames Almer <jamrial@gmail.com>
Wed, 18 Apr 2018 18:32:10 +0000 (15:32 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 19 Apr 2018 01:45:09 +0000 (22:45 -0300)
Fixes part of ticket #7146.

Signed-off-by: James Almer <jamrial@gmail.com>
libavdevice/iec61883.c

index b09929e..dcf7553 100644 (file)
@@ -463,6 +463,7 @@ static int iec61883_close(AVFormatContext *context)
     } else {
         iec61883_dv_fb_stop(dv->iec61883_dv);
         iec61883_dv_fb_close(dv->iec61883_dv);
+        av_freep(&dv->dv_demux);
     }
     while (dv->queue_first) {
         DVPacket *packet = dv->queue_first;