Fixed various memory leaks and enabled memory tracking for debug builds.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@571 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -645,18 +645,16 @@ FLMEXP RCODE FLMAPI FlmCursorFree(
|
||||
CURSOR * pCursor = (CURSOR *)*phCursor;
|
||||
IF_LogMessageClient * pLogMsg = NULL;
|
||||
|
||||
flmAssert( pCursor != NULL);
|
||||
flmAssert( pCursor);
|
||||
|
||||
if( !gv_FlmSysData.pLogger)
|
||||
if( gv_FlmSysData.pLogger)
|
||||
{
|
||||
return( FERR_OK);
|
||||
}
|
||||
|
||||
if ((pLogMsg = gv_FlmSysData.pLogger->beginMessage( FLM_QUERY_MESSAGE,
|
||||
F_DEBUG_MESSAGE)) != NULL)
|
||||
{
|
||||
flmLogQuery( pLogMsg, 0, pCursor);
|
||||
f_endLogMessage( &pLogMsg);
|
||||
if ((pLogMsg = gv_FlmSysData.pLogger->beginMessage( FLM_QUERY_MESSAGE,
|
||||
F_DEBUG_MESSAGE)) != NULL)
|
||||
{
|
||||
flmLogQuery( pLogMsg, 0, pCursor);
|
||||
f_endLogMessage( &pLogMsg);
|
||||
}
|
||||
}
|
||||
|
||||
if (!pCursor->pCSContext && gv_FlmSysData.uiMaxQueries)
|
||||
|
||||
Reference in New Issue
Block a user