PSMTabBarControl icon indicating copy to clipboard operation
PSMTabBarControl copied to clipboard

Crash after drag off tab bar

Open xlc opened this issue 13 years ago • 1 comments

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

xlc avatar Dec 20 '11 08:12 xlc

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.

andrew0 avatar Jan 31 '12 05:01 andrew0