summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/TextureManager.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-06-24 21:49:02 -0700
committer Mathias Agopian <mathias@google.com> 2010-06-24 21:49:02 -0700
commit51a6aef53c2421fe9ad157e7d4b0158f496abf26 (patch)
treecb0995620a549cb62cb1b090e3dc01446546a032 /libs/surfaceflinger/TextureManager.cpp
parent081bc5c47d8a980e6eafa70ddafcd89981586391 (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