mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
COsdSetup: Fix segfault due 'double free or corruption' (glibc)
- remove 'delete mfFontFile' & 'delete mfTtxFontFile' from destructor
- initialize variables mfFontFile & mfTtxFontFile
Origin commit data
------------------
Branch: ni/coolstream
Commit: dfd5c29371
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-04 (Thu, 04 Jul 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -70,6 +70,8 @@ COsdSetup::COsdSetup(bool wizard_mode)
|
||||
fontsizenotifier = new CFontSizeNotifier;
|
||||
osd_menu = NULL;
|
||||
submenu_menus = NULL;
|
||||
mfFontFile = NULL;
|
||||
mfTtxFontFile = NULL;
|
||||
|
||||
is_wizard = wizard_mode;
|
||||
|
||||
@@ -82,8 +84,6 @@ COsdSetup::~COsdSetup()
|
||||
{
|
||||
delete colorSetupNotifier;
|
||||
delete fontsizenotifier;
|
||||
delete mfFontFile;
|
||||
delete mfTtxFontFile;
|
||||
}
|
||||
|
||||
//font settings
|
||||
|
Reference in New Issue
Block a user