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

Unified Diff: ui/ozone/platform/dri/screen_manager.cc

Issue 344443009: Delete the controllers when ScreenManager is deleted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: ui/ozone/platform/dri/screen_manager.cc
diff --git a/ui/ozone/platform/dri/screen_manager.cc b/ui/ozone/platform/dri/screen_manager.cc
index f7fd2b3efbac5f493d0ab46274aeb0d857976780..3c1655c77d2a2bc66ac480b458cca2bf3ca2eda9 100644
--- a/ui/ozone/platform/dri/screen_manager.cc
+++ b/ui/ozone/platform/dri/screen_manager.cc
@@ -21,6 +21,8 @@ ScreenManager::ScreenManager(
}
ScreenManager::~ScreenManager() {
+ STLDeleteContainerPairSecondPointers(
+ controllers_.begin(), controllers_.end());
}
void ScreenManager::RemoveDisplayController(uint32_t crtc, uint32_t connector) {
« 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