commit | 6104cea3fb0bddd766f390f9f4e2db9fc00b410e | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Jan 10 14:37:17 2019 -0800 |
committer | John Reck <jreck@google.com> | Thu Jan 10 15:34:49 2019 -0800 |
tree | 3493ab6e3dc09dd9ffd027bc1fa85cc84abb2635 | |
parent | 8b9351ba04eef507d4ff97a84d0c13df60507daf [diff] |
Fix leak/crash in exit Bug: 120440607 Test: hwuimacro32 doesn't crash Change-Id: I35b7a924e338efb314f07b923ba22ffcf98f75ee
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp index 56eedff..8cd97ed 100644 --- a/libs/hwui/renderthread/EglManager.cpp +++ b/libs/hwui/renderthread/EglManager.cpp
@@ -93,7 +93,9 @@ , mHasWideColorGamutSupport(false) {} EglManager::~EglManager() { - destroy(); + if (hasEglContext()) { + ALOGW("~EglManager() leaked an EGL context"); + } } void EglManager::initialize() {