Release buffers before allowing them to be GC'ed

Signed-off-by: Jack Huey kitskub@gmail.com