diff options
author | 2010-06-21 15:19:26 -0700 | |
---|---|---|
committer | 2010-06-21 15:19:26 -0700 | |
commit | f955be995d9aa5eb2c4b86246b2f85797e21e003 (patch) | |
tree | 4b0b88edb20c7f440d693849507b3b1a775d125a | |
parent | b16fa651ddbd6189409aa053ff1ae73383ae5157 (diff) |
fix [2785833] valgrind error in android::Layer::requestBuffer
fix uninitialized variable
Change-Id: I99e1b619ae8c88dd9d77b3abf4762f801019047e
-rw-r--r-- | libs/surfaceflinger/Layer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp index bfd6dccba4..e606f713e0 100644 --- a/libs/surfaceflinger/Layer.cpp +++ b/libs/surfaceflinger/Layer.cpp @@ -160,6 +160,7 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h, const uint32_t hwFlags = hw.getFlags(); mFormat = format; + mReqFormat = format; mWidth = w; mHeight = h; mSecure = (flags & ISurfaceComposer::eSecure) ? true : false; |