[vlc-devel] [PATCH 2/2] avcodec: fix memory leak of rec->pict.data[1]
Hannes Domani
ssbssa at yahoo.de
Sun Dec 13 16:16:10 CET 2015
---
modules/codec/avcodec/subtitle.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/codec/avcodec/subtitle.c b/modules/codec/avcodec/subtitle.c
index 5cfad1b..de4d3e4 100644
--- a/modules/codec/avcodec/subtitle.c
+++ b/modules/codec/avcodec/subtitle.c
@@ -299,11 +299,8 @@ static subpicture_t *ConvertSubtitle(decoder_t *dec, AVSubtitle *ffsub, mtime_t
*region_next = region;
region_next = ®ion->p_next;
}
- /* Free AVSubtitleRect */
- avpicture_free(&rec->pict);
- av_free(rec);
}
- av_free(ffsub->rects);
+ avsubtitle_free(ffsub);
return spu;
}
--
2.6.3
More information about the vlc-devel
mailing list