mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
* dvbsubtitle: Fix segfault in destructor
This commit is contained in:
committed by
[CST] Focus
parent
9e49b7cd88
commit
de4996228f
@@ -200,8 +200,11 @@ cDvbSubtitleConverter::cDvbSubtitleConverter(void)
|
||||
|
||||
cDvbSubtitleConverter::~cDvbSubtitleConverter()
|
||||
{
|
||||
avcodec_close(avctx);
|
||||
av_free(avctx);
|
||||
if (avctx) {
|
||||
avcodec_close(avctx);
|
||||
av_free(avctx);
|
||||
avctx = NULL;
|
||||
}
|
||||
delete bitmaps;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user