Ticket #3432: framework.ipp.patch

File framework.ipp.patch, 756 bytes (added by janm@…, 13 years ago)

Patch to resolve the problem.

  • framework.ipp

    old new  
    127127            test_unit_store::value_type const& tu = *m_test_units.begin();
    128128
    129129            // the delete will erase this element from map
    130             if( test_id_2_unit_type( tu.second->p_id ) == tut_suite )
    131                 delete  (test_suite const*)tu.second;
    132             else
    133                 delete  (test_case const*)tu.second;
     130            if( test_id_2_unit_type( tu.second->p_id ) == tut_suite ) {
     131                test_suite const* p = (test_suite const*)tu.second;
     132                delete p;
     133            } else {
     134                test_case const* p = (test_case const*)tu.second;
     135                delete p;
     136            }
    134137        }
    135138    }
    136139