Destroy buffer in scope destroy, dramatically reduces memory leak