briancollins / BCTabBarController

a Tweetie-style tab bar for the iPhone
MIT License
568 stars 95 forks source link

BCTabBarController leaks first selected view controller #11

Closed ikershaw closed 12 years ago

ikershaw commented 12 years ago

I managed to resolve this with a

[selectedViewController release];

at line 34 of BCTabBarController.

briancollins commented 12 years ago

BCTabBarController uses automatic reference counting (ARC). You need to enable it or it will obviously leak everywhere because there are no release calls

ikershaw commented 12 years ago

Ah, sorry, I see the version I'm referring to is from before you refactored to non-ARC. I thought we we're using latest version - I'll update. Thanks.