mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +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;
|
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