Patch level : 12.0 no patch
Files correlati : Commento : Aggiunta macro SAFE_DELETE git-svn-id: svn://10.65.10.50/branches/R_10_00@23340 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
74276c081e
commit
b6fe9f2419
@ -1623,16 +1623,11 @@ void TISAM_recordset::reset()
|
||||
|
||||
void TISAM_recordset::requery()
|
||||
{
|
||||
if (_cursor != NULL)
|
||||
{
|
||||
delete _cursor;
|
||||
_cursor = NULL;
|
||||
}
|
||||
if (_relation != NULL)
|
||||
{
|
||||
delete _relation;
|
||||
_relation = NULL;
|
||||
}
|
||||
if (_cursor == NULL || not_frozen())
|
||||
{
|
||||
SAFE_DELETE(_cursor);
|
||||
SAFE_DELETE(_relation);
|
||||
}
|
||||
}
|
||||
|
||||
void TISAM_recordset::set(const char* use)
|
||||
|
@ -1494,7 +1494,7 @@ void TCursor::filter(
|
||||
if (filterchanged)
|
||||
{
|
||||
_filter = fil;
|
||||
if (_fexpr) delete _fexpr;
|
||||
SAFE_DELETE(_fexpr);
|
||||
_frefs.destroy();
|
||||
TTypeexp type = (_filter.find('"') >= 0) ? _strexpr : _numexpr;
|
||||
if (_filter.not_empty())
|
||||
@ -1731,9 +1731,8 @@ TCursor::~TCursor()
|
||||
}
|
||||
::remove(_indexname);
|
||||
}
|
||||
delete _page;
|
||||
if (_fexpr)
|
||||
delete _fexpr;
|
||||
SAFE_DELETE(_page);
|
||||
SAFE_DELETE(_fexpr);
|
||||
}
|
||||
|
||||
|
||||
@ -1868,8 +1867,7 @@ bool TCursor::scan(CURSOR_SCAN_FUNC func, void* pJolly, const char* msg)
|
||||
}
|
||||
}
|
||||
freeze(false);
|
||||
if (pi != NULL)
|
||||
delete pi;
|
||||
SAFE_DELETE(pi);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
@ -3258,9 +3256,8 @@ TSortedfile::TSortedfile(int logicnum, TRelation* rel, const char* ordexpr, cons
|
||||
// @mfunc Distruttore
|
||||
TSortedfile::~TSortedfile()
|
||||
{
|
||||
delete _curs;
|
||||
if (_rel)
|
||||
delete _rel;
|
||||
SAFE_DELETE(_curs);
|
||||
SAFE_DELETE(_rel);
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user