Skip to content

Commit 0816e65

Browse files
author
Clement Champetier
committed
OutputFile: free vector of OutputStream
1 parent 846ff21 commit 0816e65

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ OutputFile::OutputFile( const std::string& filename )
1515
, _verbose( false )
1616
{}
1717

18+
OutputFile::~OutputFile()
19+
{
20+
for( std::vector< OutputStream* >::iterator it = _outputStreams.begin(); it != _outputStreams.end(); ++it )
21+
{
22+
delete (*it);
23+
}
24+
}
25+
1826
bool OutputFile::setup()
1927
{
2028
_formatContext.setOutputFormat( _filename );

src/AvTranscoder/file/OutputFile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AvExport OutputFile
3232
**/
3333
OutputFile( const std::string& filename = "" );
3434

35-
virtual ~OutputFile(){};
35+
virtual ~OutputFile();
3636

3737
/**
3838
* @brief Initialize the OutputFile, create format context to wrap essences into output file.

0 commit comments

Comments
 (0)