Fix memory leaks.
Fix the vertex based limiter example.