diff src/variables.cc @ 9395:1de00ca9c9f2

avoid passing local variable pointers to unwind_protect
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 25 Jun 2009 11:41:46 +0200
parents 610bf90fce2a
children 17af7cce7d1b
line wrap: on
line diff
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -1389,7 +1389,7 @@
 	      // Set up temporary scope.
 
 	      symbol_table::scope_id tmp_scope = symbol_table::alloc_scope ();
-	      unwind_protect::add (symbol_table::erase_scope, &tmp_scope);
+	      unwind_protect::add_action_var (symbol_table::erase_scope, tmp_scope);
 
 	      symbol_table::set_scope (tmp_scope);