diff options
| author | 2010-02-22 17:40:46 -0600 | |
|---|---|---|
| committer | 2010-04-07 14:27:03 -0500 | |
| commit | 166bcf90720f5354d8f046d8c639ce4f75e8edcb (patch) | |
| tree | 1ec94fe723478624448f6874db3aaf563864de15 /libs/utils/StringArray.cpp | |
| parent | be0807b3433aa884f4b45236a91d4cdefa9ffc18 (diff) | |
Only hold a weak pointer on SurfaceComposerClients
Each process maintains an array of active SurfaceComposerClient
objects, so that they can be reused as new surfaces are parceled
across. When a SurfaceComposerClient is disposed, it will remove
itself from this list. However, because the list maintains a strong
reference on the object, a reference cycle is created, and the
client is never deleted.
This patch changes the list to maintain weak pointers on the clients
instead.
Change-Id: I93dc8155fe28b4e350366a3400cdf22a8c77cdd3
Diffstat (limited to 'libs/utils/StringArray.cpp')
0 files changed, 0 insertions, 0 deletions