memory leaks solved, yay