PSMTabBarControl
PSMTabBarControl copied to clipboard
Crash after drag off tab bar
Try drag off a tab bar off and drag back and drag out and back, than release mouse and move mouse away, program will crash.
2011-12-20 21:15:37.792 TabBarControlDemo[78978:507] didCloseTabViewItem: Tab 2011-12-20 21:15:51.784 TabBarControlDemo[78978:507] *** -[PSMTabBarCell mouseExited:]: message sent to deallocated instance 0x106b2d000
I'm not really familiar with the code but I'd guess that to fix that you would need to add to dealloc in PSMTabBarCell:
[self removeTrackingRect:_closeButtonTrackingTag];
[self removeTrackingRect:_cellTrackingTag];
But I don't really see where it's the tracking rect is being added at first glance.