From 5394321ea8f529a058dbe199cb007e8465e5ecf7 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 31 Oct 2012 22:57:51 +0100 Subject: [PATCH] dvbsubtitle: free avcodec context in destructor --- lib/libdvbsub/dvbsubtitle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libdvbsub/dvbsubtitle.cpp b/lib/libdvbsub/dvbsubtitle.cpp index c0ee5f75c..59d501299 100644 --- a/lib/libdvbsub/dvbsubtitle.cpp +++ b/lib/libdvbsub/dvbsubtitle.cpp @@ -229,7 +229,9 @@ cDvbSubtitleConverter::cDvbSubtitleConverter(void) cDvbSubtitleConverter::~cDvbSubtitleConverter() { - delete bitmaps; + avcodec_close(avctx); + av_free(avctx); + delete bitmaps; } void cDvbSubtitleConverter::Lock(void)