Fixed up a couple of possible memory leaks