Value:
juce::HeavyweightLeakedObjectDetector<OwnerClass>
JUCE_JOIN_MACRO (leakDetector, __LINE__);
This macro lets you embed a heavyweight leak-detecting object inside a class.
To use it, simply declare a JUCE_HEAVYWEIGHT_LEAK_DETECTOR (YourClassName) inside a private section of the class declaration. E.g.
class MyClass
{
public:
MyClass();
void blahBlah();
private:
};
NB: you should only use this when you really need to track down a tricky memory leak, and should never leave one of these inside a class!
- See also
- HeavyweightLeakedObjectDetector, JUCE_LEAK_DETECTOR, LeakedObjectDetector