diff options
| author | 2011-03-18 16:35:13 -0700 | |
|---|---|---|
| committer | 2011-03-18 16:35:13 -0700 | |
| commit | 6912daf5fa5f07a0dd2738d6b21e04de066094b6 (patch) | |
| tree | 7824d70c4d7415041130b61dc80628bc8ee95b7f | |
| parent | 73091273bb5160567f2230e1e7fcde5b0218ad9d (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 cd24478c1044..517c335925a5 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); } } |