|
|
|
@ -35,7 +35,11 @@ tDelete(const void * node, const void * data, const int depth) |
|
|
|
void |
|
|
|
TR_hashCleanup(TR_Hash this) |
|
|
|
{ |
|
|
|
TR_treeDestroy(&(this->root), tDelete); |
|
|
|
if (this->cleanup_no_free) { |
|
|
|
TR_treeDestroy(&(this->root), NULL); |
|
|
|
} else { |
|
|
|
TR_treeDestroy(&(this->root), tDelete); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// vim: set ts=4 sw=4: |