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

Fix resource leak issue - 372 #383

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

raghucssit
Copy link
Contributor

Scenario - If we have multiple level of parents for chart widget and If we dispose bottom most(top most is chart) widget by invoking dispose chart widget get disposed without calling chart.dispose(). Any subsequent call to dispose never calls dispose for it's children. So checking if chart disposed in the dispose method never give an opportunity to children dispose in the above Scenario. I have added chart disposed safety check at Title because this was causing the issue #289.

Fixes #372

@raghucssit
Copy link
Contributor Author

@eselmeister please check my changes for #372.

@raghucssit
Copy link
Contributor Author

raghucssit commented Feb 1, 2024

BarChartExampleModified.txt
Please use this modified bar chart example to see if we close the shell then chart.dispose() never gets called by default.
I have shell dispose listener and recreated the problem there.

@eselmeister
Copy link
Contributor

@raghucssit Thanks for your PR. Please extend the year (copyright header) in the modified files. If it was was e.g. 2022, 2023 before, the adjusted header should be 2022, 2024.

I'm on a business trip today. I'll review your changes tomorrow.

@eselmeister
Copy link
Contributor

@raghucssit The change looks principally ok, but you need to address the above marked license header issue.

Scenario - If we have multiple level of parents for chart widget and If
we dispose bottom most(top most is chart) widget by invoking dispose
chart widget get disposed without calling chart.dispose(). Any
subsequent call to dispose never calls dispose for it's children. So
checking if chart disposed in the dispose method never give an
opportunity to children dispose in the above Scenario. I have added
chart disposed safety check at Title because this was causing the issue
eclipse#289.

Fixes eclipse#372
@raghucssit
Copy link
Contributor Author

@raghucssit The change looks principally ok, but you need to address the above marked license header issue.

Fixed.

@eselmeister eselmeister merged commit fe225ca into eclipse:develop Feb 5, 2024
3 checks passed
@raghucssit
Copy link
Contributor Author

@eselmeister Can you please tell me what is the next release plan for swtchart ?
We will be happy to use next version of it as soon as it is shipped.

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.

Resource leak in the Chart when the parent is disposed before the chart itself.
2 participants