From 4a06bb4f3355b0ef2b76aa883704da9d154c44ae Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 17 Sep 2009 22:04:50 -0700 Subject: workaround for [2113743] Sholes: frozen then runtime restart going to list view --- libs/surfaceflinger/Layer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/surfaceflinger/Layer.cpp') diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp index 8dfc2cf766b9..5ff928439aa7 100644 --- a/libs/surfaceflinger/Layer.cpp +++ b/libs/surfaceflinger/Layer.cpp @@ -88,7 +88,6 @@ void Layer::destroy() mBuffers[i].clear(); mWidth = mHeight = 0; } - mSurface.clear(); } sp Layer::createSurface() const @@ -99,7 +98,8 @@ sp Layer::createSurface() const status_t Layer::ditch() { // the layer is not on screen anymore. free as much resources as possible - destroy(); + //destroy(); + mSurface.clear(); return NO_ERROR; } -- cgit v1.2.3-59-g8ed1b