Skip to content

Commit

Permalink
Ensure testrec is deleted in TV::HandleStateChange() if the recorder …
Browse files Browse the repository at this point in the history
…proves to be invalid. Should never have happened in practice. Coverity 1023891
  • Loading branch information
stuartm committed May 25, 2013
1 parent 5ecae1f commit e2f60da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -2260,6 +2260,8 @@ void TV::HandleStateChange(PlayerContext *mctx, PlayerContext *ctx)
ctx->SetRecorder(testrec);
ctx->recorder->Setup();
}
else
delete testrec; // If testrec isn't a valid recorder ...
}
else if (getit)
chanid = 0;
Expand Down

0 comments on commit e2f60da

Please sign in to comment.