From 2e987bf2b0c3f9318b28c79186a35f338c90ee6c Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 6 Nov 2008 13:30:27 +0000 Subject: QPID-1417: ensure there are no dangling pointers in a connections output tasks git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711855 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/AggregateOutput.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src/qpid/sys/AggregateOutput.cpp') diff --git a/cpp/src/qpid/sys/AggregateOutput.cpp b/cpp/src/qpid/sys/AggregateOutput.cpp index 2fad28c381..d2c4b7185e 100644 --- a/cpp/src/qpid/sys/AggregateOutput.cpp +++ b/cpp/src/qpid/sys/AggregateOutput.cpp @@ -65,4 +65,9 @@ void AggregateOutput::removeOutputTask(OutputTask* t) if (i != tasks.end()) tasks.erase(i); } +void AggregateOutput::removeAll() +{ + tasks.clear(); +} + }} // namespace qpid::sys -- cgit v1.2.1