fixed clang static analyzer issues.

- removed dead code from drawRect:
- fixed leak in attributedStringRef