From 1723b049c60a298e9016f40bbbaa13ca8fe69b65 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 28 Jan 2011 18:23:24 -0800 Subject: fix [3389263] OMX.Nvidia.h264.decode fails to shutdown We were still destroying an ANativeWindow's buffer pretty soon after it was removed from the window manager. This time we really wait for the ISurace to go away. Change-Id: I329273fedaeef76ee92836f6180c2c3808389330 --- services/surfaceflinger/Layer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'services/surfaceflinger/Layer.cpp') diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 37307391fd9f..f64fd7b59bbe 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -150,8 +150,7 @@ status_t Layer::ditch() // the layer is not on screen anymore. free as much resources as possible mFreezeLock.clear(); - EGLDisplay dpy(mFlinger->graphicPlane(0).getEGLDisplay()); - mBufferManager.destroy(dpy); + // Free our own reference to ISurface mSurface.clear(); Mutex::Autolock _l(mLock); -- cgit v1.2.3-59-g8ed1b