From d7287af35db666c5baefd90db18622bf56061ab4 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/227bf9f2e8ddc82366073c22bf382b7aebfa9782 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 b88ed4d6d..d3384ccf7 100644 --- a/lib/libdvbsub/dvbsubtitle.cpp +++ b/lib/libdvbsub/dvbsubtitle.cpp @@ -200,7 +200,9 @@ cDvbSubtitleConverter::cDvbSubtitleConverter(void) cDvbSubtitleConverter::~cDvbSubtitleConverter() { - delete bitmaps; + avcodec_close(avctx); + av_free(avctx); + delete bitmaps; } void cDvbSubtitleConverter::Lock(void)