clean up buffer creation code
1 file changed