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

Unified Diff: chrome/browser/ui/android/website_settings_popup_android.cc

Issue 2173773003: Fix possible memory leaks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « chrome/browser/ui/android/connection_info_popup_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/website_settings_popup_android.cc
diff --git a/chrome/browser/ui/android/website_settings_popup_android.cc b/chrome/browser/ui/android/website_settings_popup_android.cc
index 1e24271f6c68f537b6d7a5a64b9c0a4334be04f6..75b5e48c7fa677b1f042d16144e9d9bba4efe90e 100644
--- a/chrome/browser/ui/android/website_settings_popup_android.cc
+++ b/chrome/browser/ui/android/website_settings_popup_android.cc
@@ -95,6 +95,9 @@ void WebsiteSettingsPopupAndroid::SetPermissionInfo(
const ChosenObjectInfoList& chosen_object_info_list) {
// TODO(reillyg): Display the contents of |chosen_object_info_list|.
// https://crbug.com/424667.
+ STLDeleteContainerPointers(chosen_object_info_list.begin(),
+ chosen_object_info_list.end());
+
JNIEnv* env = base::android::AttachCurrentThread();
// On Android, we only want to display a subset of the available options in a
« no previous file with comments | « chrome/browser/ui/android/connection_info_popup_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698