8000 Fix CPTGraphHostingView memory leak by jotai-coder · Pull Request #485 · core-plot/core-plot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix CPTGraphHostingView memory leak #485

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

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

jotai-coder
Copy link

Use weak self in handler

Please consider the following issues before submitting a pull request:

-[] Support all platforms (Mac, iOS, and tvOS)
-[] Pass Travis build validation
-[] Include unit tests where appropriate
-[] If adding a new feature, consider including a demo in the Plot Gallery example app

use weak self in handler
@jotai-coder
Copy link
Author
jotai-coder commented Oct 5, 2024

Found this retain cycle for CPTGraphHostingView when running release-2.4 on iOS 17 and later.
This will leak all instances of CPTGraphHostingView.

Issue: #486

@jotai-coder jotai-coder changed the title Fix CPTGraphHostingView retain cycle Fix CPTGraphHostingView memory leak Oct 11, 2024
@jotai-coder
Copy link
Author

@eskroch Any feedback on this one?

@eskroch eskroch merged commit 6fe4162 into core-plot:release-2.4 Oct 23, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants
0