diff options
author | Mathias Agopian <mathias@google.com> | 2009-06-19 17:00:27 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-06-19 17:00:27 -0700 |
commit | 6edf5af578c1ab1fcd44b7c08ca371456e4b7430 (patch) | |
tree | 28ae8dec57019f5aac653b1a2d4df5cd061ee976 /libs/surfaceflinger/LayerBase.h | |
parent | c8fb5b1979da4829e1486e6a1008c06c979b94b0 (diff) | |
download | frameworks_base-6edf5af578c1ab1fcd44b7c08ca371456e4b7430.zip frameworks_base-6edf5af578c1ab1fcd44b7c08ca371456e4b7430.tar.gz frameworks_base-6edf5af578c1ab1fcd44b7c08ca371456e4b7430.tar.bz2 |
fix a memory corruption where a SF Client could be used after it's been destroyed
Diffstat (limited to 'libs/surfaceflinger/LayerBase.h')
-rw-r--r-- | libs/surfaceflinger/LayerBase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaceflinger/LayerBase.h b/libs/surfaceflinger/LayerBase.h index 509dedd..b5265d2 100644 --- a/libs/surfaceflinger/LayerBase.h +++ b/libs/surfaceflinger/LayerBase.h @@ -297,11 +297,11 @@ public: virtual uint32_t getTypeInfo() const { return typeInfo; } LayerBaseClient(SurfaceFlinger* flinger, DisplayID display, - Client* client, int32_t i); + const sp<Client>& client, int32_t i); virtual ~LayerBaseClient(); virtual void onFirstRef(); - Client* const client; + wp<Client> client; layer_cblk_t* const lcblk; inline uint32_t getIdentity() const { return mIdentity; } |