Minor fixes. Released the delegate in dealloc too, although even if I didn't do this, there was no leak in the profiler. The program runs fine with this anyway so I'm keeping it in.
Merge pull request #4 from cgosingtian/delegate

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