Re: [Cppunit-devel] ~TestDecorator() does NOT delete test
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2002-07-10 18:48:12
|
I do agree. This is a legacy of the original version of CppUnit, but I doubt it was ever really used. Can someone provide any good reason why TestDecorator should not destroy the test that is passed at construction ? Notes that this also impact TestSetUp and RepeatedTest as they inherits TestDecorator... Baptiste. ----- Original Message ----- From: "FUKUDA Fumiki" <ff...@nt...> To: <cpp...@li...> Sent: Wednesday, July 03, 2002 11:38 AM Subject: [Cppunit-devel] ~TestDecorator() does NOT delete test > Hi, > > I found a questionable code. > > TestDecorator::~TestDecorator() does NOT delete decorated Test* > I think it will lead memory-leak or memory-run-up... > > -----:-----:-----:-----:-----:-----:-----:-----:-----:----- > FUKUDA (episteme) Fumiki -- magical, but never a magic... |