Revert "Fixing memory leak in RenderBufferCache"

This reverts commit a15a980622816c836cc89e6f9d2c8be8318272bf.
Revert " frameworks/base: Handle Out of Memory Exception when creating video t…"

This reverts commit 777daf1f5cfddc18ed127e293cdffb718ab5f79e.