Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Unified Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 1807006: This fixes an InvalidRead error that valgrind found.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/thumbnail_generator.cc
===================================================================
--- chrome/browser/tab_contents/thumbnail_generator.cc (revision 45824)
+++ chrome/browser/tab_contents/thumbnail_generator.cc (working copy)
@@ -393,7 +393,10 @@
RenderWidgetHost* renderer = contents->render_view_host();
while (iterator != callback_map_.end()) {
if (iterator->second->renderer == renderer) {
- callback_map_.erase(iterator);
+ ThumbnailCallbackMap::iterator nuked = iterator;
+ ++iterator;
+ callback_map_.erase(nuked);
+ continue;
}
++iterator;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698