summaryrefslogtreecommitdiff
path: root/opengl/libagl/TextureObjectManager.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@android.com> 2009-08-17 20:17:30 -0700
committer Romain Guy <romainguy@android.com> 2009-08-18 10:16:41 -0700
commit15df6703f8bf3255eb7ba5c27e3518f60adc83f1 (patch)
tree2b1a3c484048a1afaf69ef3cac7596a2cbff920e /opengl/libagl/TextureObjectManager.cpp
parent6a2d513a4ad116fc5405d4d4f1f6fdb692bdefbc (diff)
Fix potential leak in ViewRoot.
The way View.post() is handled can cause potential leaks in ViewRoot. For instance, if a View calls post(Runnable) just after being detached from the window (in an onClickListener for instance,) it will enqueue a Runnable in ViewRoot.RunQueue. Unfortunately the RunQueue is emptied only on the very first layout of the ViewRoot. This change prevents the leak by rxecuting the enqueued Runnables on every layout request The latter did not happen before and to keep views in a correct state I think it is necessary to always ensure we run the Runnables sent via View.post().
Diffstat (limited to 'opengl/libagl/TextureObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions