Merge "SurfaceFlinger: fix releaseBuffer in updateTexImage"

This commit is contained in:
Lajos Molnar 2013-06-28 00:42:23 +00:00 committed by Android (Google) Code Review
commit 23e81a2103

View File

@ -69,7 +69,7 @@ status_t SurfaceFlingerConsumer::updateTexImage(BufferRejecter* rejecter)
// reject buffers which have the wrong size
int buf = item.mBuf;
if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) {
releaseBufferLocked(buf, item.mGraphicBuffer, EGL_NO_SYNC_KHR);
releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, EGL_NO_SYNC_KHR);
return NO_ERROR;
}