# HG changeset patch # User Jaroslav Hajek # Date 1260945532 -3600 # Node ID a5a05b2ebb9df9d3999ab8dd73363f894570db74 # Parent 1300d9ced492c95681c09f44e748ec1dd6f3ba2d avoid duplicate function cleaning in symbol_table::cleanup diff -r 1300d9ced492 -r a5a05b2ebb9d src/ChangeLog --- a/src/ChangeLog Wed Dec 16 01:25:40 2009 -0500 +++ b/src/ChangeLog Wed Dec 16 07:38:52 2009 +0100 @@ -1,3 +1,8 @@ +2009-12-16 Jaroslav Hajek + + * symtab.cc (symbol_table::cleanup): Call clear_variables rather than + clear_all on the top and global scopes. + 2009-12-16 John W. Eaton * DLD-FUNCTIONS/fltk_backend.cc (F__init_fltk__): diff -r 1300d9ced492 -r a5a05b2ebb9d src/symtab.cc --- a/src/symtab.cc Wed Dec 16 01:25:40 2009 -0500 +++ b/src/symtab.cc Wed Dec 16 07:38:52 2009 +0100 @@ -1334,14 +1334,14 @@ void symbol_table::cleanup (void) { // Clear variables in top scope. - all_instances[xtop_scope]->clear_all (); + all_instances[xtop_scope]->clear_variables (); // Clear function table. This is a hard clear, ignoring mlocked functions. fcn_table.clear (); // Clear variables in global scope. // FIXME: are there any? - all_instances[xglobal_scope]->clear_all (); + all_instances[xglobal_scope]->clear_variables (); // Clear global variables. global_table.clear ();