OSDN Git Service

fix [2170283] SurfaceFlinger crashes on OOM.
authorMathias Agopian <mathias@google.com>
Tue, 6 Oct 2009 22:58:44 +0000 (15:58 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 8 Oct 2009 01:03:35 +0000 (18:03 -0700)
commitd3144beec6acb37702629799a2adbeccc72ca222
tree48feaca0f7fab325bf60d0c2a6de3a425de82926
parent28541629e163399fd1cac126e06868ecf1b4811e
fix [2170283] SurfaceFlinger crashes on OOM.

when running out of memory, a null handle is returned but the error code may not be set.
In that case we need to return NO_MEMORY instead of NO_ERROR, so that the calling code
won't try to dereference the null pointer.
libs/ui/Surface.cpp