Fixing memory leaks.
Fixed a bunch of memory shit.
No more leaks.