mirror of
https://github.com/reactos/reactos.git
synced 2025-05-09 03:37:08 +00:00
[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:
parent
8860dc5393
commit
a2a063a282
1 changed files with 2 additions and 0 deletions
|
@ -275,10 +275,12 @@ static INT_PTR security_on_destroy(secdlg_data * sd)
|
||||||
|
|
||||||
heap_free(sd->zone_attr);
|
heap_free(sd->zone_attr);
|
||||||
heap_free(sd->zones);
|
heap_free(sd->zones);
|
||||||
|
#ifndef __REACTOS__
|
||||||
if (sd->himages) {
|
if (sd->himages) {
|
||||||
SendMessageW(sd->hlv, LVM_SETIMAGELIST, LVSIL_NORMAL, 0);
|
SendMessageW(sd->hlv, LVM_SETIMAGELIST, LVSIL_NORMAL, 0);
|
||||||
ImageList_Destroy(sd->himages);
|
ImageList_Destroy(sd->himages);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
security_cleanup_zones(sd);
|
security_cleanup_zones(sd);
|
||||||
SetWindowLongPtrW(sd->hsec, DWLP_USER, 0);
|
SetWindowLongPtrW(sd->hsec, DWLP_USER, 0);
|
||||||
|
|
Loading…
Reference in a new issue