summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-03-18 16:35:13 -0700
committerJamie Gennis <jgennis@google.com>2011-03-18 16:35:13 -0700
commit5fd799dab602850b384d124c61096636f0988a93 (patch)
tree3dcd67a7990ae7ddbed79eb8290b5a1989cf7158
parent691935bfcdd05d809372de746da5bca47fcf71ab (diff)
downloadframeworks_native-5fd799dab602850b384d124c61096636f0988a93.zip
frameworks_native-5fd799dab602850b384d124c61096636f0988a93.tar.gz
frameworks_native-5fd799dab602850b384d124c61096636f0988a93.tar.bz2
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index cd24478..517c335 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);
}
}