Fixed a memory leak where buffers were not getting destroyed properly.
Updated .gitignore to ignore some visual studio files.