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

Commits on May 2, 2024

  1. Fix [eclipse#436] "Error: SWT Resource was not properly disposed" in …

    …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>
    cedric780 committed May 2, 2024
    Configuration menu
    Copy the full SHA
    5e584fd View commit details
    Browse the repository at this point in the history
  2. Apply ptziegleril suggestion:

    > 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?
    cedric780 committed May 2, 2024
    Configuration menu
    Copy the full SHA
    a710b44 View commit details
    Browse the repository at this point in the history