Mem leak in the input buffer

This commit is contained in:
jfmcarreira committed 2014-03-23 17:02:05 +00:00
1 parent fc00a73144
commit ea4e68e96b
1 file changed
+7 -1
+7 -1
View File
@@ -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;
}