mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
gui/record_setup.cpp: fix memlean - CRecordingSafetyNotifier
This commit is contained in:
@@ -170,6 +170,8 @@ const CMenuOptionChooser::keyval END_OF_RECORDING[END_OF_RECORDING_COUNT] =
|
|||||||
int CRecordSetup::showRecordSetup()
|
int CRecordSetup::showRecordSetup()
|
||||||
{
|
{
|
||||||
//menue init
|
//menue init
|
||||||
|
|
||||||
|
RecordingSafetyNotifier = new CRecordingSafetyNotifier;
|
||||||
CMenuWidget* recordingSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_RECORDSETUP);
|
CMenuWidget* recordingSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_RECORDSETUP);
|
||||||
|
|
||||||
//apply settings
|
//apply settings
|
||||||
@@ -213,6 +215,7 @@ int CRecordSetup::showRecordSetup()
|
|||||||
int res = recordingSettings->exec(NULL, "");
|
int res = recordingSettings->exec(NULL, "");
|
||||||
recordingSettings->hide();
|
recordingSettings->hide();
|
||||||
delete recordingSettings;
|
delete recordingSettings;
|
||||||
|
delete RecordingSafetyNotifier;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,7 +228,6 @@ void CRecordSetup::showRecordTimerSetup(CMenuWidget *menu_timersettings)
|
|||||||
sprintf(g_settings.record_safety_time_after, "%02d", post/60);
|
sprintf(g_settings.record_safety_time_after, "%02d", post/60);
|
||||||
|
|
||||||
//start
|
//start
|
||||||
CRecordingSafetyNotifier *RecordingSafetyNotifier = new CRecordingSafetyNotifier;
|
|
||||||
CStringInput * timerBefore = new CStringInput(LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE, g_settings.record_safety_time_before, 2, LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE_HINT_1, LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE_HINT_2,"0123456789 ", RecordingSafetyNotifier);
|
CStringInput * timerBefore = new CStringInput(LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE, g_settings.record_safety_time_before, 2, LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE_HINT_1, LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE_HINT_2,"0123456789 ", RecordingSafetyNotifier);
|
||||||
CMenuForwarder *fTimerBefore = new CMenuDForwarder(LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE, true, g_settings.record_safety_time_before, timerBefore);
|
CMenuForwarder *fTimerBefore = new CMenuDForwarder(LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE, true, g_settings.record_safety_time_before, timerBefore);
|
||||||
|
|
||||||
|
@@ -40,6 +40,7 @@ class CRecordSetup : public CMenuTarget
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
int width;
|
int width;
|
||||||
|
CRecordingSafetyNotifier *RecordingSafetyNotifier;
|
||||||
|
|
||||||
int showRecordSetup();
|
int showRecordSetup();
|
||||||
void showRecordTimerSetup(CMenuWidget *menu_timersettings);
|
void showRecordTimerSetup(CMenuWidget *menu_timersettings);
|
||||||
|
Reference in New Issue
Block a user