All remaining non-SDL memory leaks fixed