Fixing rendering leak when using OS mesa.
Merge remote-tracking branch 'github/osmesa_rendering_leak' into uvcdat-master

* github/osmesa_rendering_leak:
  Fixing rendering leak when using OS mesa.