summaryrefslogtreecommitdiffstats
path: root/chrome/gpu/gpu_channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/gpu/gpu_channel.cc')
-rw-r--r--chrome/gpu/gpu_channel.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/gpu/gpu_channel.cc b/chrome/gpu/gpu_channel.cc
index b2b5bf9..b775acf 100644
--- a/chrome/gpu/gpu_channel.cc
+++ b/chrome/gpu/gpu_channel.cc
@@ -91,8 +91,10 @@ void GpuChannel::OnChannelError() {
#if defined(ENABLE_GPU)
// Destroy all the stubs on this channel.
- for (size_t i = 0; i < stubs_.size(); ++i) {
- router_.RemoveRoute(stubs_[i]->route_id());
+ for (StubMap::const_iterator iter = stubs_.begin();
+ iter != stubs_.end();
+ ++iter) {
+ router_.RemoveRoute(iter->second->route_id());
}
stubs_.clear();
#endif