Fixed memory leaks.

closes #148
Merge branch 'master' of https://github.com/EsotericSoftware/spine-runtimes