fixed: in cache.cpp there was headerfile_ezc_cache macro used
(copied from cache.h) fixed: in Generator: memory leak from block_stack objects pointing by block_stack_tab[].out_stream were not deleted fixed: in Item: ClearCache() didn't clear all pointers Function::parameters table were not used git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@979 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
14
src/item.cpp
14
src/item.cpp
@@ -161,14 +161,20 @@ Item::~Item()
|
||||
}
|
||||
|
||||
|
||||
void Item::ClearCache(Item::Function & function)
|
||||
{
|
||||
function.fun_cache = 0;
|
||||
function.item_block = 0;
|
||||
|
||||
for(size_t i=0 ; i<function.parameters.size() ; ++i)
|
||||
ClearCache(*function.parameters[i]);
|
||||
}
|
||||
|
||||
|
||||
void Item::ClearCache()
|
||||
{
|
||||
for(size_t f = 0; f < functions.size() ; ++f)
|
||||
{
|
||||
functions[f].fun_cache = 0;
|
||||
functions[f].item_block = 0;
|
||||
}
|
||||
ClearCache(functions[f]);
|
||||
|
||||
for(size_t i = 0; i < item_tab.size() ; ++i)
|
||||
item_tab[i]->ClearCache();
|
||||
|
Reference in New Issue
Block a user