Fixed more memory leaks. What seems to be remaining are SDL2 specific ones that we can do nothing about.