gui/mediaplayer_setup.cpp: fix memleaks when using CMenuForwarder

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5d35fc6fd9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-04 (Fri, 04 May 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-05-04 15:04:07 +04:00
parent a93f19bf99
commit 5a2a040090

View File

@@ -88,9 +88,11 @@ int CMediaPlayerSetup::showMediaPlayerSetup()
// intros // intros
mediaSetup->addIntroItems(LOCALE_AUDIOPLAYERPICSETTINGS_GENERAL); mediaSetup->addIntroItems(LOCALE_AUDIOPLAYERPICSETTINGS_GENERAL);
mediaSetup->addItem(new CMenuForwarder(LOCALE_PICTUREVIEWER_HEAD, true, NULL, new CPictureViewerSetup(), "", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED)); CPictureViewerSetup psetup;
mediaSetup->addItem(new CMenuForwarder(LOCALE_AUDIOPLAYER_NAME, true, NULL, new CAudioPlayerSetup(), "", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN)); mediaSetup->addItem(new CMenuForwarder(LOCALE_PICTUREVIEWER_HEAD, true, NULL, &psetup, "", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
CAudioPlayerSetup asetup;
mediaSetup->addItem(new CMenuForwarder(LOCALE_AUDIOPLAYER_NAME, true, NULL, &asetup, "", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
int res = mediaSetup->exec (NULL, ""); int res = mediaSetup->exec (NULL, "");
mediaSetup->hide (); mediaSetup->hide ();