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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window.cc

Issue 7624039: Fix a memory leak in the IME candidate window of Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/chromeos/input_method/candidate_window.cc
diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc
index 46ee983e73b9825a29b388eba864dcf7df9e0ffa..8533c0089b99d68d5e58c12d0cb3a73aeb3ecd61 100644
--- a/chrome/browser/chromeos/input_method/candidate_window.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc
@@ -1046,9 +1046,7 @@ void CandidateWindowView::MaybeInitializeCandidateViews(
previous_annotation_column_width_ = annotation_column_width;
// Clear the existing candidate_views if any.
- for (size_t i = 0; i < candidate_views_.size(); ++i) {
- candidate_area_contents->RemoveChildView(candidate_views_[i]);
- }
+ candidate_area_contents->RemoveAllChildViews(true);
candidate_views_.clear();
views::GridLayout* layout = new views::GridLayout(candidate_area_contents);
« 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