mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
COsdSetup: Fix segfault due 'double free or corruption' (glibc)
- remove 'delete mfFontFile' & 'delete mfTtxFontFile' from destructor - initialize variables mfFontFile & mfTtxFontFile
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