UIActionSheet memory leak REGRESSION on iOS 8
| Originator: | nicholas.helke | ||
| Number: | rdar://19682731 | Date Originated: | 2 Feb 2015 |
| Status: | Closed | Resolved: | Duplicate |
| Product: | iOS SDK | Product Version: | iOS 8.* |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When presenting a UIActionSheet using showFromRect:inView:animated: method, the view the sheet is presented in is leaked if a user presses on of the presented options. Steps to Reproduce: 1. Present an action sheet using showFromRect:inView:animated: method 2. Choose one of the options presented (if the action sheet is simply dismissed the bug does not present) 3. Observe as the reference count of the view the sheet was presented from is irrevocably upped by one. Expected Results: DO NOT leak view the action sheet is presented in. Actual Results: DOES leak view the action sheet is presented in. NOTA BENE iOS 7 does not leak. Version: iOS 8.0.2 – iOS 8.1.3 Notes: The attached sample project illustrates this issue. Watch the logs, if the sheet is dismissed the view it is presented from is dealloced on both iOS 8 and iOS 7, if however one of the options is selected the view is only dealloced on iOS 7 and leaks on iOS 8. Configuration: iPad Attachments: 'ActionSheetMemoryLeak.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!