Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

UIActionSheet is leaking (not BlocksKit problem though) #155

Closed
seivan opened this issue Jul 5, 2013 · 1 comment
Closed

UIActionSheet is leaking (not BlocksKit problem though) #155

seivan opened this issue Jul 5, 2013 · 1 comment

Comments

@seivan
Copy link

seivan commented Jul 5, 2013

Just wanted to give you guys a heads up. UIActionSheet got a bit of a nasty leak.
in which instruments won't actually pin point it... But running instruments you can look for UIActionSheet under allocated objects, and see that it still keeps them alive.

You'd have to specifically set the local variable to nil.

http://openradar.appspot.com/radar?id=3175405

You can easily fix it though to setting it to nil AFTER it is being dismissed - after calling the block in your delegate.

Setting it to nil before will still make the callback work, but you won't be able to access any of its properties.

@seivan
Copy link
Author

seivan commented Jul 5, 2013

Hmm. I can't seem to reproduce this.

@seivan seivan closed this as completed Jul 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant