fixes #16, memory leak was caused by not deleting the temporaryBufferObjects Shape. This was fixed by changing the destructor of the temporaryBufferObject to delete the corresponding shape, material and geometry.