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 [#436] "Error: SWT Resource was not properly disposed" in ScaledG… #437

Merged
merged 2 commits into from May 3, 2024

Conversation

cedric780
Copy link
Contributor

[#436] Fix "Error: SWT Resource was not properly disposed" in ScaledGraphics.zoomTextLayout()

Resolves #436
Dispose the TextLayout when returning null.

Signed-off-by: Cedric Marin cedric.dev.780@gmail.com

…ScaledGraphics.zoomTextLayout()

[eclipse#436] Fix "Error: SWT Resource was not properly disposed" in ScaledGraphics.zoomTextLayout()

Resolves eclipse#436
Dispose the TextLayout when returning null.

Signed-off-by: Cedric Marin <cedric.dev.780@gmail.com>
> Instead of creating and disposing the resources, wouldn't it make more sense to move it so that it's only created after this check?
@ptziegler ptziegler merged commit 3a41de2 into eclipse:master May 3, 2024
9 checks passed
@ptziegler
Copy link
Contributor

Thank you for the fix!

@ptziegler ptziegler added this to the 3.20.0 milestone May 3, 2024
@cedric780 cedric780 deleted the patch-1 branch May 6, 2024 12:56
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.

"Error: SWT Resource was not properly disposed" in ScaledGraphics.zoomTextLayout()
2 participants