Skip to content

Commit 846ff21

Browse files
author
Clement Champetier
committed
AudioTransform: free resampleContext
1 parent eec7bc0 commit 846ff21

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/AvTranscoder/transform/AudioTransform.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ AudioTransform::AudioTransform()
3737
{
3838
}
3939

40+
AudioTransform::~AudioTransform()
41+
{
42+
FreeResampleContext( &_audioConvertContext );
43+
}
44+
4045
bool AudioTransform::init( const Frame& srcFrame, const Frame& dstFrame )
4146
{
4247
const AudioFrame& src = static_cast<const AudioFrame&>( srcFrame );

src/AvTranscoder/transform/AudioTransform.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class AvExport AudioTransform : public ITransform
2121
{
2222
public:
2323
AudioTransform();
24+
~AudioTransform();
2425

2526
void convert( const Frame& srcFrame, Frame& dstFrame );
2627

0 commit comments

Comments
 (0)