[INETCPL] Let image list be automatically deleted (#5892)

Based on KRosUser's inetsec.patch.
Don't delete the image list because the image list will be automatically deleted by the list view.
CORE-19301
This commit is contained in:
Katayama Hirofumi MZ 2023-11-17 10:11:41 +09:00 committed by GitHub
parent 8860dc5393
commit a2a063a282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,10 +275,12 @@ static INT_PTR security_on_destroy(secdlg_data * sd)
heap_free(sd->zone_attr);
heap_free(sd->zones);
#ifndef __REACTOS__
if (sd->himages) {
SendMessageW(sd->hlv, LVM_SETIMAGELIST, LVSIL_NORMAL, 0);
ImageList_Destroy(sd->himages);
}
#endif
security_cleanup_zones(sd);
SetWindowLongPtrW(sd->hsec, DWLP_USER, 0);