Fix to delegate declaration.

...this fix uses the weak feature to nil out the reference during the dealloc process.