OSDN Git Service

fix [2515291] Native crash and runtime restart while trying to preview captured pictu...
authorMathias Agopian <mathias@google.com>
Tue, 16 Mar 2010 01:15:20 +0000 (18:15 -0700)
committerMathias Agopian <mathias@google.com>
Tue, 16 Mar 2010 01:15:20 +0000 (18:15 -0700)
commitd343e3d5e3177806205b9452b0b43907e28afd9a
treea094c9ea996f2d1ceb872340a192741ea6395635
parent80586f4230f974c2a3fe2b8aa398ffd6764e3a3a
fix [2515291] Native crash and runtime restart while trying to preview captured picture on Sapphire

if a buffer couldn't be allocated because of an OOM, SF could, in some case dereference
a null pointer.

Change-Id: I5321248c38a21e56d5278b6aada2694e64451378
libs/surfaceflinger/Layer.cpp