Memory Leak in UIKit library when UITextField is set to UITextBorderStyleRoundedRect and the background color is not set
| Originator: | r.amrutakrishna | ||
| Number: | rdar://15335090 | Date Originated: | 10/28/2013 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0.3 |
| Classification: | Memory Leak | Reproducible: | Always |
Summary: Memory Leak in UIKit library when UITextField is set to UITextBorderStyleRoundedRect and the background color is not set. The leaked object is UIDeviceRGBColor. This leak happens while setting background color by UIKit library when the background color of the text field is not set explicitly. Steps to Reproduce: 1. Profile the attached project on the device (Specifically iPad iOS 7.0.3 version) 2. Touch the UITextfield View button. 3. Enter arbitrary text in to the UITextfield and hit Cancel button 4. Repeat step 2 and 3 a max of 5 times. 5. This workflow produces a leaked object (UIDeviceRGBColor) Expected Results: Memory leak shouldn't be noticed. There shouldn't be any UIDeviceRGBColor leaked object in UIKit library. Actual Results: Memory leak should be noticed. The leaked object would be UIDeviceRGBColor in UIKit library. If the background color of UITextField is set explicitly, there wouldn't be any leaked object. Version: iOS 7.0.3
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!