diff options
author | malosek <malosek@fastmq.com> | 2009-09-16 14:26:04 +0200 |
---|---|---|
committer | malosek <malosek@fastmq.com> | 2009-09-16 14:26:04 +0200 |
commit | 3534732c0614a764731fbea2431247068fa63330 (patch) | |
tree | 411b0a7b0fea4f9da2bb4318b42ab60f50715474 /src/dispatcher.cpp | |
parent | 17800ac85e667d18124d0e90f9387d6c90887570 (diff) | |
parent | a71d00288008b7ed1dc91b6ad3d5fdf25a5e683e (diff) |
Merge branch 'master' of git@github.com:sustrik/zeromq2
Diffstat (limited to 'src/dispatcher.cpp')
-rw-r--r-- | src/dispatcher.cpp | 4 |
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; |