From ea4e68e96b1b214ad2505df6d46882f236a812fd Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sun, 23 Mar 2014 17:02:05 +0000 Subject: [PATCH] Mem leak in the input buffer --- source/InputStream.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/InputStream.cpp b/source/InputStream.cpp index ed088d8..24a115a 100755 --- a/source/InputStream.cpp +++ b/source/InputStream.cpp @@ -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; }