We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode: Version 10.1 (10B61) Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1) Target: x86_64-apple-darwin17.7.0
md5: c219864c347f8d4951ad971923882ddc
duplicates:
Issue Description:
Minimum swift code is next one.
import UIKit class Label: UILabel { deinit { print("deinit label") } } class NotLeakViewController1: UIViewController { @IBOutlet weak var label: Label! override func viewDidLoad() { super.viewDidLoad() } } class NotLeakViewController2: UIViewController { var label: Label = Label() override func viewDidLoad() { super.viewDidLoad() view.addSubview(label) _ = Array(Mirror(reflecting: self).children) // Iterate mirror children } } class LeakViewController: UIViewController { @IBOutlet weak var label: Label! override func viewDidLoad() { super.viewDidLoad() _ = Array(Mirror(reflecting: self).children) // Iterate mirror children } }
The text was updated successfully, but these errors were encountered:
Comment by Nobuo Saito (JIRA)
Looks this is fixed on #19795
Sorry, something went wrong.
No branches or pull requests
Environment
Xcode: Version 10.1 (10B61)
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin17.7.0
Additional Detail from JIRA
md5: c219864c347f8d4951ad971923882ddc
duplicates:
Issue Description:
Minimum swift code is next one.
The text was updated successfully, but these errors were encountered: