Fixed double erase in ViEChannelManager channel map.

Review URL: https://webrtc-codereview.appspot.com/369011

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1546 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2012-01-25 16:00:49 +00:00
parent b11424bc11
commit 9b0a820624

View File

@ -51,11 +51,10 @@ ViEChannelManager::~ViEChannelManager() {
"ViEChannelManager Destructor, engine_id: %d", engine_id_);
module_process_thread_->DeRegisterModule(remb_.get());
while (channel_map_.size() > 0) {
ChannelMap::iterator it = channel_map_.begin();
while (it != channel_map_.end()) {
// DeleteChannel will erase this channel from the map and invalidate |it|.
DeleteChannel(it->first);
channel_map_.erase(it);
it = channel_map_.begin();
}
if (voice_sync_interface_) {