Permalink
Browse files

backports [24004] from release-0-23-fixes

fix memleaks in several mpegrecorder based recorders, Refs #8266


git-svn-id: http://svn.mythtv.org/svn/branches/release-0-22-fixes@24255 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 404f7f8 commit 60d5fd87b372b545c3ee06978cee38bfa246fc82 @jannau jannau committed Apr 24, 2010
@@ -120,6 +120,7 @@ DVBRecorder::DVBRecorder(TVRec *rec, DVBChannel* advbchannel)
DVBRecorder::~DVBRecorder()
{
TeardownAll();
+ SetStreamData(NULL);
}
void DVBRecorder::TeardownAll(void)
@@ -33,6 +33,7 @@ IPTVRecorder::~IPTVRecorder()
{
StopRecording();
_channel->GetFeeder()->RemoveListener(this);
+ SetStreamData(NULL);
}
bool IPTVRecorder::Open(void)
@@ -119,6 +119,7 @@ MpegRecorder::MpegRecorder(TVRec *rec) :
MpegRecorder::~MpegRecorder()
{
TeardownAll();
+ SetStreamData(NULL);
}
void MpegRecorder::TeardownAll(void)

0 comments on commit 60d5fd8

Please sign in to comment.