Moved the super-file handle into FTK and fixed various memory leaks in the FLAIM/XFLAIM unit tests.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@575 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -818,6 +818,11 @@ Exit:
|
||||
{
|
||||
pCSVFileHdl->Release();
|
||||
}
|
||||
|
||||
if( pFileSystem)
|
||||
{
|
||||
pFileSystem->Release();
|
||||
}
|
||||
|
||||
return( rc);
|
||||
}
|
||||
@@ -1508,6 +1513,12 @@ RCODE TestBase::importBuffer(
|
||||
|
||||
Exit:
|
||||
|
||||
if( m_pInputStream)
|
||||
{
|
||||
m_pInputStream->Release();
|
||||
m_pInputStream = NULL;
|
||||
}
|
||||
|
||||
return( rc);
|
||||
}
|
||||
|
||||
@@ -1534,6 +1545,12 @@ RCODE TestBase::importDocument(
|
||||
|
||||
Exit:
|
||||
|
||||
if( m_pInputStream)
|
||||
{
|
||||
m_pInputStream->Release();
|
||||
m_pInputStream = NULL;
|
||||
}
|
||||
|
||||
return( rc);
|
||||
}
|
||||
|
||||
@@ -1561,6 +1578,12 @@ RCODE TestBase::importFile(
|
||||
|
||||
Exit:
|
||||
|
||||
if( m_pInputStream)
|
||||
{
|
||||
m_pInputStream->Release();
|
||||
m_pInputStream = NULL;
|
||||
}
|
||||
|
||||
return( rc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user