|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57991 - branches/release/boost/test/impl
From: gennadiy.rozental_at_[hidden]
Date: 2009-11-28 04:18:25
Author: rogeeff
Date: 2009-11-28 04:18:24 EST (Sat, 28 Nov 2009)
New Revision: 57991
URL: http://svn.boost.org/trac/boost/changeset/57991
Log:
merge memory fix. Fixes #2889
Text files modified:
branches/release/boost/test/impl/framework.ipp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified: branches/release/boost/test/impl/framework.ipp
==============================================================================
--- branches/release/boost/test/impl/framework.ipp (original)
+++ branches/release/boost/test/impl/framework.ipp 2009-11-28 04:18:24 EST (Sat, 28 Nov 2009)
@@ -124,13 +124,14 @@
void clear()
{
while( !m_test_units.empty() ) {
- test_unit_store::value_type const& tu = *m_test_units.begin();
+ test_unit_store::value_type const& tu = *m_test_units.begin();
+ test_unit* tu_ptr = tu.second;
// the delete will erase this element from map
if( ut_detail::test_id_2_unit_type( tu.second->p_id ) == tut_suite )
- delete static_cast<test_suite const*>(tu.second);
+ delete (test_suite const*)tu_ptr;
else
- delete static_cast<test_case const*>(tu.second);
+ delete (test_case const*)tu_ptr;
}
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk