UIActionSheets leak memory in iOS 8 on iPad after dismissing by tapping a button

Originator:RichWChan
Number:rdar://19607819 Date Originated:26-Jan-2015
Status:Open Resolved:
Product:iOS SDK Product Version:8.1
Classification:Performance Reproducible:Always
 
Sample project: https://www.dropbox.com/s/eevnt7w1hjw5lda/DBActionSheetTester.zip?dl=0

Summary:
After tapping on a button in a UIActionSheet, the action sheet gets dismissed but continues to retain the root view controller of the UIWindow. The root view controller remains in-memory even after we replaced the window's root view controller.

Steps to Reproduce:
1. Open a UIActionSheet
2. Dismiss by tapping on the destructive button
3. Replace the UIWindow's root view controller
4. Note that the old root view controller remains in memory

Expected Results:
The old root view controller should be released.

Actual Results:
The old root view controller remains in memory indefinitely.

Version:
iOS 8.1

Notes:
Using the new UIAlertController seems to work as expected and does not cause a leak.

Configuration:
iPad Air Simulator + Device

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!