You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Win32] Clean up disposed images when retrieving image list handle #2432
Images inside an ImageList may become disposed. For that reason, methods
like indexOf() or add() check for the images inside the list being
disposed to null them. This check is missing in the getHandle() method
used when requesting the ImageList handle for a different zoom, which
can lead to exceptions because of access to a disposed Image instance.
This change adapts the ImageList implementation to always consider that
an image inside the list may have been disposed. The according cleanup
logic is factored out from all places.
Fixes#2432
0 commit comments