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
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:
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:
#11341
Sorry, something went wrong.
Comment by Jared Halpern (JIRA)
Thank you @slavapestov!
Comment by Cem Kozinoglu (JIRA)
that was fast, thanks @slavapestov
slavapestov
No branches or pull requests
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: