mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
dvbsubtitle: Fix segfault in destructor
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1fb105b361
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-19 (Fri, 19 Apr 2013)
Origin message was:
------------------
* dvbsubtitle: Fix segfault in destructor
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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