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:
Michael Liebmann
2013-07-04 22:51:39 +02:00
parent eadb8475b1
commit 5394e251b8

View File

@@ -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