Memory leak in UIPresentationController
Originator: | serhii.zabrodko | ||
Number: | rdar://36256721 | Date Originated: | 3/01/18 |
Status: | Duplicated http://www.openradar.me/21753811 | Resolved: | |
Product: | UIKit | Product Version: | 11.2 |
Classification: | Memory Leak | Reproducible: | Yes |
Summary: Any call to .presentationController for root controller in app (assigned to rootViewController property of main window) causes memory cycle between: <controller>.presentationController.presentedController(<controller>) Steps to Reproduce: 1. Set any root controller 2. Call .presentationController 3. Replace root controller 4. Old controller still being hold by its presentation controller Expected Results: There should not be cycle in this case. UIKit assumes root controller never to change, but this can happen sometimes. Actual Results: UIPresentationController should be removed after transition
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!
You're right, this one looks the same: http://www.openradar.me/21753811
Duplicates http://www.openradar.me/21753811 which probably duplicates http://www.openradar.me/21404408.