Changeset 39fef2


Ignore:
Timestamp:
Feb 25, 2010, 3:06:38 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
a0fcfb
Parents:
d06198
Message:

MEMLEAK: ActOnAllTest forgot to delete the copied VectorList Ref and the MemoryUsageObserver, and in ScaleTest() factors and inverses array were not Free'd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/ActOnAllUnitTest.cpp

    rd06198 r39fef2  
    4444{
    4545  VL.EmptyList();
     46  // Ref was copy constructed, hence has to be cleaned, too!
     47  Ref.EmptyList();
     48  MemoryUsageObserver::purgeInstance();
    4649};
    4750
     
    9295  VL.ActOnAll( (void (Vector::*)(const double ** const)) &Vector::Scale, (const double ** const)&inverses );
    9396  CPPUNIT_ASSERT_EQUAL( VL == Ref , true );
     97  Free(factors);
     98  Free(inverses);
    9499};
    95100
Note: See TracChangeset for help on using the changeset viewer.