Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/ActOnAllUnitTest.cpp

    r920c70 r1bd79e  
    4646  // Ref was copy constructed, hence has to be cleaned, too!
    4747  Ref.EmptyList();
     48  MemoryUsageObserver::purgeInstance();
    4849};
    4950
     
    7677
    7778  // scaling by three values
    78   double *factors = new double[NDIM];
    79   double *inverses = new double[NDIM];
     79  double *factors = Malloc<double>(NDIM, "ActOnAllTest::ScaleTest - factors");
     80  double *inverses = Malloc<double>(NDIM, "ActOnAllTest::ScaleTest - inverses");
    8081  for (int i=0;i<NDIM;++i) {
    8182    factors[i] = 2.;
     
    8788  VL.ActOnAll<Vector,void,const double*>(&Vector::ScaleAll, inverses );
    8889  CPPUNIT_ASSERT_EQUAL( VL == Ref , true );
    89   delete[](factors);
    90   delete[](inverses);
     90  Free(factors);
     91  Free(inverses);
    9192};
    9293
Note: See TracChangeset for help on using the changeset viewer.