mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +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
------------------
Commit: dfd5c29371
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-04 (Thu, 04 Jul 2013)
This commit is contained in:
@@ -70,6 +70,8 @@ COsdSetup::COsdSetup(bool wizard_mode)
|
|||||||
fontsizenotifier = new CFontSizeNotifier;
|
fontsizenotifier = new CFontSizeNotifier;
|
||||||
osd_menu = NULL;
|
osd_menu = NULL;
|
||||||
submenu_menus = NULL;
|
submenu_menus = NULL;
|
||||||
|
mfFontFile = NULL;
|
||||||
|
mfTtxFontFile = NULL;
|
||||||
|
|
||||||
is_wizard = wizard_mode;
|
is_wizard = wizard_mode;
|
||||||
|
|
||||||
@@ -82,8 +84,6 @@ COsdSetup::~COsdSetup()
|
|||||||
{
|
{
|
||||||
delete colorSetupNotifier;
|
delete colorSetupNotifier;
|
||||||
delete fontsizenotifier;
|
delete fontsizenotifier;
|
||||||
delete mfFontFile;
|
|
||||||
delete mfTtxFontFile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//font settings
|
//font settings
|
||||||
|
Reference in New Issue
Block a user