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

#21 [win32] HDC leak in Image.createGdipImage() #22

Conversation

SyntevoAlex
Copy link
Member

Signed-off-by: Alexandr Miloslavskiy alexandr.miloslavskiy@syntevo.com

This is a regression from recent Bug 493455, where this line was lost
during refactoring:
  device.internal_dispose_GC(hDC, null)

Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
@SyntevoAlex
Copy link
Member Author

@niraj-modi This is a serious regression, I recommend merging despite freeze period.

@SyntevoAlex SyntevoAlex force-pushed the z_alexandr.miloslavskiy/#0501_SWT_Issue0021_HdcLeak_ImageCreateGdipImage branch from 191dce8 to 6476232 Compare April 6, 2022 03:30
@iloveeclipse iloveeclipse merged commit 4c90f85 into eclipse-platform:master Apr 6, 2022
gc.dispose();

ImageData imageData = image.getImageData();
imageData.transparentPixel = transparent.handle;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SyntevoAlex : on Linux, I see now compiler error: Type mismatch: cannot convert from GdkRGBA to int

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.

[win32] HDC leak in Image.createGdipImage()
2 participants