[SR-9282] Weak variables in structs leak on String(describing:) or print #51754
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
memory leak
bug: Memory leak
runtime
The Swift Runtime
Additional Detail from JIRA
md5: 2fe6a872faf2ebd035dd37f74a844177
duplicates:
Issue Description:
The following code should print "Deinit!" before exiting. It does print this on the Swift 4.1 Snapshot 2018-05-31 toolchain, but does not on the Swift 4.2 toolchain that ships with Xcode 10.
More info here https://forums.swift.org/t/struct-with-weak-ref-memory-issue/18040
The text was updated successfully, but these errors were encountered: