From 2d7685ca2c8fd53ade77281b5ce25d0cb63194cc 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/5394321ea8f529a058dbe199cb007e8465e5ecf7 Author: Stefan Seyfried Date: 2012-10-31 (Wed, 31 Oct 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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)