mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
* dvbsubtitle: Fix segfault in destructor
This commit is contained in:
@@ -200,8 +200,11 @@ cDvbSubtitleConverter::cDvbSubtitleConverter(void)
|
|||||||
|
|
||||||
cDvbSubtitleConverter::~cDvbSubtitleConverter()
|
cDvbSubtitleConverter::~cDvbSubtitleConverter()
|
||||||
{
|
{
|
||||||
|
if (avctx) {
|
||||||
avcodec_close(avctx);
|
avcodec_close(avctx);
|
||||||
av_free(avctx);
|
av_free(avctx);
|
||||||
|
avctx = NULL;
|
||||||
|
}
|
||||||
delete bitmaps;
|
delete bitmaps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user