Found and fixed the memory leak I couldn't find.