diff options
| author | 2017-06-15 12:53:59 -0700 | |
|---|---|---|
| committer | 2017-06-16 16:30:05 -0700 | |
| commit | fae51c438827ae0a55c1b83c0e9be348254bfbd4 (patch) | |
| tree | 376dbc36387cdf7bdedadcfffd0fbcb928f2b498 /libs/ui/DebugUtils.cpp | |
| parent | 515dc9c538b8206b746eeb4906ac0b8aed1fb497 (diff) | |
surfaceflinger: fix a potential child layer leak
We should not remove a child layer from its already removed parent.
Call p->removeChild only after we've checked that the ancestor is
alive.
Apply e6b63e1ae12692327f7e46d5f10d6ade5a7bf192 and this fix to
SurfaceFlinger_hwc1.cpp as well.
Bug: 37121786
Test: manual stress test
Change-Id: I7b811450a998acc4ad9690bd4eda058ce6588e14
Diffstat (limited to 'libs/ui/DebugUtils.cpp')
0 files changed, 0 insertions, 0 deletions