You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When a Swift class contains an optional Enum property that is marked with @objc, and this same class also contains a mutable (var) array holding at least one element, there is an unexpected memory leak.
Additional Detail from JIRA
md5: 35cf4dfd70334327afe2879d0c779595
Issue Description:
Summary:
When a Swift class contains an optional Enum property that is marked with @objc, and this same class also contains a mutable (var) array holding at least one element, there is an unexpected memory leak.
Steps to Reproduce:
Steps:
You should now encounter leaks.
Expected Results:
No leaks.
Observed Results:
Memory leaking.
Version:
XCode:
(Same issue on 8.3.3 as well)
Deployment Target:
MacOS:
Notes:
Work around:
If we convert the optional enum class property to a non-optional, leak will disappear.
// Let's convert the optional property to a non-optional
var leakOptionalEnum: leakingObjCMarkedEnum = .memoryLeakCase
The text was updated successfully, but these errors were encountered: