summaryrefslogtreecommitdiff
path: root/src/dispatcher.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-16 14:02:43 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-16 14:02:43 +0200
commit4631fde7e385ea31e85f41290614afb9bda391c9 (patch)
tree4e936e8835d461eebc23ed9673ef874837492173 /src/dispatcher.cpp
parent9c522dccaf0b2c8074bd96fbfb4c968f45748ba4 (diff)
ZMQII-8: Failure during orphan pipe deallocation
Diffstat (limited to 'src/dispatcher.cpp')
-rw-r--r--src/dispatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dispatcher.cpp b/src/dispatcher.cpp
index 530238d..6ac9fa2 100644
--- a/src/dispatcher.cpp
+++ b/src/dispatcher.cpp
@@ -100,8 +100,8 @@ zmq::dispatcher_t::~dispatcher_t ()
delete io_threads [i];
// Deallocate all the orphaned pipes.
- for (pipes_t::iterator it = pipes.begin (); it != pipes.end (); it++)
- delete *it;
+ while (!pipes.empty ())
+ delete *pipes.begin ();
delete [] command_pipes;