Fixed two other memory leaks I missed.