-
Notifications
You must be signed in to change notification settings - Fork 9
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? #2
Comments
Thanks a lot! I forgot releasing linked-list data like TEdge and OutPt after calculations. I will fix it in next commit. |
@lhuanyu Wow, thank you so much for the quick response and fix! However, I believe there may still be an issue with
|
OK. I will check it later. |
Hi there, @lhuanyu . I just wanted to check if you've had a chance to look into this issue? I know you may be busy with other things. This is just a friendly reminder since this issue has been closed, I don't want it to be forgotten. |
Sorry, I am very busy with my personal project recently. I have reopened this issue for later checking. |
First, thank you so much for this library! It is exactly what I needed for a little project I've been working on.
I believe this library is causing a memory leak in my app. I use the "intersection" functionality pretty heavily, and memory usage goes up over time. Analysis with Instruments and other Xcode tools leaks me to think that there is a strong circular reference between
OutPt
types, as shown in this image:I believe I was able to eliminate the leak by making
next
andprev
weak
(but I did a lot of messy workarounds to prove that out - I probably broke other functionality in the process).I believe TEdge has a similar issue:
Please let me know if you need more information. I can put some time into trying to create a minimal repro if needed.
The text was updated successfully, but these errors were encountered: