Fixed memory crasher.
- Plugged a couple memory leaks
Merge pull request #36 from MrNoodle/master

Fixed memory crasher.