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 GDI-object leak in Item properties dialogue box #704

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

reupen
Copy link
Owner

@reupen reupen commented Apr 30, 2023

This fixes a regression caused by #683 on older versions of Windows, where the Item properties options tree view state image list was being leaked every time the dialogue was closed. This is linked to the use of the TVS_CHECKBOXES style.

This change destroys the image list as directed in the documentation. I was only able to reproduce the leak on older versions of Windows (e.g. Windows 7).

(The FCL import and export dialogues already had the logic to destroy the image list, so weren't affected by this problem.)

This fixes a regression caused by #683 on older versions of Windows, where the Item properties options tree view state image list was being leaked every time the dialogue was closed. This is linked to the use of the TVS_CHECKBOXES style.

This change destroys the image list as directed in the documentation. I was only able to reproduce the leak on older versions of Windows (e.g. Windows 7).

(The FCL import and export dialogues already had the logic to destroy the image list, so weren't affected by this problem.)
@reupen reupen marked this pull request as ready for review April 30, 2023 15:30
@reupen reupen merged commit 52e95db into main Apr 30, 2023
@reupen reupen deleted the fix-item-props-options-leak branch April 30, 2023 15:30
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.

1 participant