- Fixed multiple memory leaks and "jumps depending on uninitialized value(s)" (Thanks Valgrind!).