* dvbsubtitle: Fix segfault in destructor

This commit is contained in:
Michael Liebmann
2013-04-19 14:49:23 +02:00
committed by [CST] Focus
parent 9e49b7cd88
commit de4996228f

View File

@@ -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;
}