Swift: Memory leak when storing enum in class
||Product Version:||8.2.1 (8C1002)|
Memory leak occurs when storing an enum in a class. Very small sample project attached - see AppDelegate.swift.
Steps to Reproduce:
1. Open attached sample app
2. Select a physical device to run on (not a simulator)
3. Run Instruments (Cmd-I)
4. Select the Leaks template
5. Start recording
Multiple leaks of _ContiguousArrayStorage<Item>.
iOS 10.2.1, Xcode 8.2.1 (8C1002)
Reproduced on iPhone 7 and iPhone 5
'LeakCheck.zip' and 'leaks.png' were successfully uploaded.
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!