Fixed Memory leak issues. and fixed compile errors.
Merge branch 'master' of https://github.com/Toneyisnow/FlameDragon