Skip to content
New issue

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

memory leak in getDeviceProperty #1

Open
paulz opened this issue Feb 1, 2021 · 0 comments
Open

memory leak in getDeviceProperty #1

paulz opened this issue Feb 1, 2021 · 0 comments

Comments

@paulz
Copy link

paulz commented Feb 1, 2021

we are getting a lot of strings leaking from running monitor just for a few seconds:

leaks Report Version: 4.0
Process 57082: 153864 nodes malloced for 26207 KB
Process 57082: 1036 leaks for 52400 total leaked bytes.
999 (49.9K) ROOT LEAK: CFString

memory graph helped to find the location:

return propValue?.takeUnretainedValue()

to fix we used:
return propValue?.takeRetainedValue()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant