mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
src/gui/timerlist.cpp fix memleak
This commit is contained in:
@@ -1056,19 +1056,18 @@ int CTimerList::modifyTimer()
|
|||||||
|
|
||||||
//printf("TIMER: rec dir %s len %s\n", timer->recordingDir, strlen(timer->recordingDir));
|
//printf("TIMER: rec dir %s len %s\n", timer->recordingDir, strlen(timer->recordingDir));
|
||||||
|
|
||||||
if (!strlen(timer->recordingDir))
|
|
||||||
strncpy(timer->recordingDir,g_settings.network_nfs_recordingdir.c_str(),sizeof(timer->recordingDir)-1);
|
|
||||||
timer_recordingDir = timer->recordingDir;
|
|
||||||
|
|
||||||
bool recDirEnabled = (g_settings.recording_type == RECORDING_FILE); // obsolete?
|
|
||||||
CMenuForwarder* m6 = new CMenuForwarder(LOCALE_TIMERLIST_RECORDING_DIR, recDirEnabled, timer_recordingDir, this, "rec_dir1", CRCInput::RC_green);
|
|
||||||
|
|
||||||
timerSettings.addItem(GenericMenuSeparatorLine);
|
timerSettings.addItem(GenericMenuSeparatorLine);
|
||||||
timerSettings.addItem(m3);
|
timerSettings.addItem(m3);
|
||||||
timerSettings.addItem(m4);
|
timerSettings.addItem(m4);
|
||||||
timerSettings.addItem(m5);
|
timerSettings.addItem(m5);
|
||||||
if (timer->eventType == CTimerd::TIMER_RECORD)
|
if (timer->eventType == CTimerd::TIMER_RECORD)
|
||||||
{
|
{
|
||||||
|
if (!strlen(timer->recordingDir))
|
||||||
|
strncpy(timer->recordingDir,g_settings.network_nfs_recordingdir.c_str(),sizeof(timer->recordingDir)-1);
|
||||||
|
timer_recordingDir = timer->recordingDir;
|
||||||
|
|
||||||
|
bool recDirEnabled = (g_settings.recording_type == RECORDING_FILE); // obsolete?
|
||||||
|
CMenuForwarder* m6 = new CMenuForwarder(LOCALE_TIMERLIST_RECORDING_DIR, recDirEnabled, timer_recordingDir, this, "rec_dir1", CRCInput::RC_green);
|
||||||
timerSettings.addItem(GenericMenuSeparatorLine);
|
timerSettings.addItem(GenericMenuSeparatorLine);
|
||||||
timerSettings.addItem(m6);
|
timerSettings.addItem(m6);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user