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

Unified Diff: ui/ozone/platform/drm/gpu/drm_console_buffer.cc

Issue 1132803004: ozone: drm: Fix graphics buffer handle leak in DrmConsoleBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Created 5 years, 7 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 | ui/ozone/platform/drm/gpu/drm_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_console_buffer.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_console_buffer.cc b/ui/ozone/platform/drm/gpu/drm_console_buffer.cc
index 743fbaec8dedc022eb0c76840c69cdb9c72a8cbb..2244fc2cf498b35e580454b291c0638666760349 100644
--- a/ui/ozone/platform/drm/gpu/drm_console_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/drm_console_buffer.cc
@@ -27,6 +27,9 @@ DrmConsoleBuffer::~DrmConsoleBuffer() {
if (mmap_base_)
if (munmap(mmap_base_, mmap_size_))
PLOG(ERROR) << "munmap";
+
+ if (handle_ && !drm_->CloseBufferHandle(handle_))
+ PLOG(ERROR) << "DrmConsoleBuffer: CloseBufferHandle: handle " << handle_;
}
bool DrmConsoleBuffer::Initialize() {
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698