mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
* dvbsubtitle: Fix segfault in destructor
This commit is contained in:
@@ -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