Mem leak in the input buffer
This commit is contained in:
1 parent
fc00a73144
commit
ea4e68e96b
1 file changed
+7
-1
@@ -47,6 +47,9 @@ InputStream::InputStream()
|
||||
|
||||
m_iFileFormat = INVALID;
|
||||
|
||||
m_cCurrFrame = NULL;
|
||||
m_pInputBuffer = NULL;
|
||||
|
||||
m_cFilename = QString( "" );
|
||||
m_cStreamInformationString = QString( "" );
|
||||
}
|
||||
@@ -199,9 +202,12 @@ Void InputStream::close()
|
||||
m_cLibAvContext.closeAvFormat();
|
||||
#endif
|
||||
|
||||
if(m_cCurrFrame)
|
||||
if( m_cCurrFrame )
|
||||
delete m_cCurrFrame;
|
||||
|
||||
if( m_pInputBuffer )
|
||||
free_mem1Dpel( m_pInputBuffer );
|
||||
|
||||
m_iStatus = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user