OSDN Git Service

Fix use of invalid iterator.
authorChristopher Ferris <cferris@google.com>
Tue, 26 Apr 2016 18:29:08 +0000 (11:29 -0700)
committerChristopher Ferris <cferris@google.com>
Wed, 27 Apr 2016 18:02:21 +0000 (11:02 -0700)
commit87e94cd1d16281051d5241a25035aa1db0b073d8
tree6bdf3d639b443d390562a0853a9848d7c4bc3ca6
parent2ee735c97c760cec76c1385f1896b822ff45cba5
Fix use of invalid iterator.

The code grabbed an iterator to a slot, but eventually does an erase
of the iterator. Unfortunately, the code then attempts to use this
invalid iterator which can introduce subtle crashes by putting a
garbage value on the free buffer list.

Bug: 28351886
Change-Id: I42a4431b182cee4de829f15fa4ddc175a3d141f7
libs/gui/BufferQueueProducer.cpp