Skip to content

Commit 717aa26

Browse files
author
Clement Champetier
committed
Transcoder: delete Dummy arrays in destructor
1 parent 70d37fe commit 717aa26

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/AvTranscoder/Transcoder/Transcoder.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Transcoder::~Transcoder()
2424
{
2525
delete (*it);
2626
}
27-
// for( std::vector< DummyAudio* >::iterator it = _dummyAudio.begin(); it != _dummyAudio.end(); ++it )
28-
// {
29-
// delete (*it);
30-
// }
31-
// for( std::vector< DummyVideo* >::iterator it = _dummyVideo.begin(); it != _dummyVideo.end(); ++it )
32-
// {
33-
// delete (*it);
34-
// }
27+
for( std::vector< DummyAudio* >::iterator it = _dummyAudio.begin(); it != _dummyAudio.end(); ++it )
28+
{
29+
delete (*it);
30+
}
31+
for( std::vector< DummyVideo* >::iterator it = _dummyVideo.begin(); it != _dummyVideo.end(); ++it )
32+
{
33+
delete (*it);
34+
}
3535
}
3636

3737
void Transcoder::add( const std::string& filename, const size_t streamIndex, const std::string& profileName )

0 commit comments

Comments
 (0)