summaryrefslogtreecommitdiff
path: root/src/dispatcher.cpp
diff options
context:
space:
mode:
authormalosek <malosek@fastmq.com>2009-09-16 14:26:04 +0200
committermalosek <malosek@fastmq.com>2009-09-16 14:26:04 +0200
commit3534732c0614a764731fbea2431247068fa63330 (patch)
tree411b0a7b0fea4f9da2bb4318b42ab60f50715474 /src/dispatcher.cpp
parent17800ac85e667d18124d0e90f9387d6c90887570 (diff)
parenta71d00288008b7ed1dc91b6ad3d5fdf25a5e683e (diff)
Merge branch 'master' of git@github.com:sustrik/zeromq2
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;