Fixed a memory leak. There's probably more where that came from...