Making sure "release()" is called on data buffers where needed

In some samples, we were calling close() which is deprecated;
this CL replaces those calls with release().

Bug: 21438369
Change-Id: Ide39cc46e965f389399124967fc591f8ee86f834
3 files changed