diff options
author | 2010-06-24 21:49:02 -0700 | |
---|---|---|
committer | 2010-06-24 21:49:02 -0700 | |
commit | 8c3c51bb33dff53168827f338d6c6c50c9825c08 (patch) | |
tree | 2b112e3ed677d4403729a4ced8351a36b1445dc3 /libs/surfaceflinger/TextureManager.cpp | |
parent | 01e4483b29d849fcbaa53dcdbad58201b13a6588 (diff) |
Fix a bug in sp<> and wp<> which could cause memory corruptions
when assigning a smart pointer to another one, we need to make
sure to read all the data we need from the right-hand-side
reference (the assignee) before we decRef the assigned.
This bug would cause linked-list of smart-pointers to fail
miserably.
Change-Id: Ibb554c15fddf909f7737c632b7c80322e80ea93f
Diffstat (limited to 'libs/surfaceflinger/TextureManager.cpp')
0 files changed, 0 insertions, 0 deletions