Skip to content

Commit 8bbf302

Browse files
author
Robert McNamara
committed
Fix segfault in AddRecordSchedule API.
1 parent bbd0880 commit 8bbf302

File tree

1 file changed

+1
-3
lines changed
  • mythtv/programs/mythbackend/services

1 file changed

+1
-3
lines changed

mythtv/programs/mythbackend/services/dvr.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,6 @@ int Dvr::AddRecordSchedule ( int nChanId,
444444
RecordingInfo *info = new RecordingInfo(nChanId, dStartTime, false);
445445
RecordingRule *rule = info->GetRecordingRule();
446446

447-
delete info;
448-
info = NULL;
449-
450447
if (sType.isEmpty())
451448
sType = "single";
452449

@@ -459,6 +456,7 @@ int Dvr::AddRecordSchedule ( int nChanId,
459456
if (sDupIn.isEmpty())
460457
sDupIn = "all";
461458

459+
rule->m_title = info->GetTitle();
462460
rule->m_type = recTypeFromString(sType);
463461
rule->m_searchType = searchTypeFromString(sSearchType);
464462
rule->m_dupMethod = dupMethodFromString(sDupMethod);

0 commit comments

Comments
 (0)