diff options
author | 2024-01-17 10:42:29 -0800 | |
---|---|---|
committer | 2024-01-17 18:58:00 +0000 | |
commit | 1009dbdbbf28c891d70d9d125b081b3df4c5849d (patch) | |
tree | cbdb32d864dc8cbccaa278520b268f27bbc80e5f /libs/gui/BLASTBufferQueue.cpp | |
parent | 07116b9563c8a262b1960d84247d18260ab6245d (diff) |
Fix crash when a layer is destroyed immediately after creation
If a layer handle is destroyed before we commit any transactions, we
will not be able to promote the legacy layer object in the main thread. This
is a few of the remaining warts with the legacy frontend which we can fixed
once we remove the flag. For now, fix this by checking if the layer was
destroyed before accessing the legacy layer object.
Test: presubmit
Fixes: 318347070
Change-Id: Ia54feb4b483f0981acd198a0af07745cec183863
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions