cpputest/cpputest — pull request #150 by nkdm (2013-07-30 20:32:35+00:00)
Title: Fixed fake memory leak when throwing exception in constructor.

It has been submitted as issue #73, but I've found out that the fix is only partial. It does not work when throw is performed in different translation unit. To solve this, the delete operator declarations with additional parameters (__FILE__ and__LINE__) must be included by every file. If their are not, the default delete is called, and the detector doesn't know that the memory has been freed.

1. I changed the tests to show that - I moved ClassThatThrowsAnExceptionInTheConstructor to different translation unit.
2. I moved declarations to MemoryLeakDetectorNewMacros.h, which is included everywhere
3. I've removed redundant declarations by including MemoryLeakDetectorNewMacros.h in MemoryLeakWarningPlugin.h