diff --git a/system/masking/include/tracer.hpp b/system/masking/include/tracer.hpp index 70cc9534c4a..3aef92ce189 100644 --- a/system/masking/include/tracer.hpp +++ b/system/masking/include/tracer.hpp @@ -135,7 +135,8 @@ class CModularTracer : public CBaseTracer public: CModularTracer() { - setSink(DefaultHelperName, new CStandardTraceMsgSink()); + Owned sink(new CStandardTraceMsgSink()); + setSink(DefaultHelperName, sink); } inline bool setSink(IModularTraceMsgSink* sink) {