Fixed some memory leaks, clean world causes massive memory bugs