Cleaned up memory leaks.