Skip to content

Commit

Permalink
Fix segfault in AddRecordSchedule API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McNamara committed Mar 31, 2012
1 parent bbd0880 commit 8bbf302
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mythtv/programs/mythbackend/services/dvr.cpp
Expand Up @@ -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";

Expand All @@ -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);
Expand Down

0 comments on commit 8bbf302

Please sign in to comment.