Fixed two small memory leaks.