Fixing rendering leak when using OS mesa.
Merge pull request #15 from aashish24/osmesa_rendering_leak

Fixing rendering leak when using OS mesa.