diff options
author | John Reck <jreck@google.com> | 2019-01-10 14:37:17 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2019-01-10 15:34:49 -0800 |
commit | 6104cea3fb0bddd766f390f9f4e2db9fc00b410e (patch) | |
tree | 3493ab6e3dc09dd9ffd027bc1fa85cc84abb2635 /libs/hwui/renderthread/EglManager.cpp | |
parent | 8b9351ba04eef507d4ff97a84d0c13df60507daf (diff) |
Fix leak/crash in exit
Bug: 120440607
Test: hwuimacro32 doesn't crash
Change-Id: I35b7a924e338efb314f07b923ba22ffcf98f75ee
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/EglManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp index 56eedff4a6e6..8cd97ed20215 100644 --- a/libs/hwui/renderthread/EglManager.cpp +++ b/libs/hwui/renderthread/EglManager.cpp @@ -93,7 +93,9 @@ EglManager::EglManager() , mHasWideColorGamutSupport(false) {} EglManager::~EglManager() { - destroy(); + if (hasEglContext()) { + ALOGW("~EglManager() leaked an EGL context"); + } } void EglManager::initialize() { |