Permalink
Browse files

Fix segfault in AddRecordSchedule API.

  • Loading branch information...
1 parent bbd0880 commit 8bbf30244150a3697408faaab9f6da3987c9c533 Robert McNamara committed Mar 31, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 mythtv/programs/mythbackend/services/dvr.cpp
@@ -444,9 +444,6 @@ int Dvr::AddRecordSchedule ( int nChanId,
RecordingInfo *info = new RecordingInfo(nChanId, dStartTime, false);
RecordingRule *rule = info->GetRecordingRule();
- delete info;
- info = NULL;
-
if (sType.isEmpty())
sType = "single";
@@ -459,6 +456,7 @@ int Dvr::AddRecordSchedule ( int nChanId,
if (sDupIn.isEmpty())
sDupIn = "all";
+ rule->m_title = info->GetTitle();
rule->m_type = recTypeFromString(sType);
rule->m_searchType = searchTypeFromString(sSearchType);
rule->m_dupMethod = dupMethodFromString(sDupMethod);

0 comments on commit 8bbf302

Please sign in to comment.