Fix: Memory leaks in the render.
Merge pull request #15 from rominf/master

Fixed non bash shells compatibility
Merge pull request #1 from Boomaga/master

Merge upstream