17 |
index d8d872ea09..944c1a2823 100644 |
index d8d872ea09..944c1a2823 100644 |
18 |
--- a/libavcodec/v4l2_m2m.c |
--- a/libavcodec/v4l2_m2m.c |
19 |
+++ b/libavcodec/v4l2_m2m.c |
+++ b/libavcodec/v4l2_m2m.c |
20 |
@@ -330,6 +330,8 @@ static void v4l2_m2m_destroy_context(void *opaque, uint8_t *context) |
@@ -330,6 +330,7 @@ static void v4l2_m2m_destroy_context(void *opaque, uint8_t *context) |
21 |
sem_destroy(&s->refsync); |
sem_destroy(&s->refsync); |
22 |
|
|
23 |
close(s->fd); |
close(s->fd); |
|
+ av_frame_free(&s->frame); |
|
24 |
+ av_packet_unref(&s->buf_pkt); |
+ av_packet_unref(&s->buf_pkt); |
25 |
|
|
26 |
av_free(s); |
av_free(s); |