* exception.cc (__cp_pop_exception): Cleanup the original object.

From-SVN: r32426
This commit is contained in:
Nathan Sidwell 2000-03-08 17:16:17 +00:00 committed by Nathan Sidwell
parent 532f12a24c
commit 99f80c8bcd
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
* exception.cc (__cp_pop_exception): Cleanup the original object.
2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
* decl.c (grok_op_properties): Merge conversion to void warning

View File

@ -252,10 +252,10 @@ __cp_pop_exception (cp_eh_info *p)
if (p->cleanup)
/* 2 is a magic value for destructors; see build_delete(). */
p->cleanup (p->value, 2);
p->cleanup (p->original_value, 2); // value may have been adjusted.
if (! __is_pointer (p->type))
__eh_free (p->original_value); // value may have been co-erced.
__eh_free (p->original_value); // value may have been adjusted.
__eh_free (p);
}