diff options
| author | 2011-03-18 16:35:13 -0700 | |
|---|---|---|
| committer | 2011-03-18 16:35:13 -0700 | |
| commit | 5fd799dab602850b384d124c61096636f0988a93 (patch) | |
| tree | 3dcd67a7990ae7ddbed79eb8290b5a1989cf7158 | |
| parent | 691935bfcdd05d809372de746da5bca47fcf71ab (diff) | |
SurfaceFlinger: Fix a typo.
This change makes Layer skip its cleanup of its old shared memory region
when the UserClient object that owned the memory has been freed.
Bug: 3429357
Change-Id: I9e4d8eb190f6914dc043674b9bb8dd28e959901b
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index cd24478c10..517c335925 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -809,7 +809,7 @@ status_t Layer::ClientRef::setToken(const sp<UserClient>& uc, { // scope for strong mUserClient reference sp<UserClient> userClient(mUserClient.promote()); - if (mUserClient != 0 && mControlBlock != 0) { + if (userClient != 0 && mControlBlock != 0) { mControlBlock->setStatus(NO_INIT); } } |