Minor fixes. Released the delegate in dealloc too, although even if I di...

...dn't do this, there was no leak in the profiler. The program runs fine with this anyway so I'm keeping it in.