Commit aa0296e3 authored by Haidong Yu's avatar Haidong Yu Committed by Alexandre Julliard

inetcpl.cpl: Fix memory leak in security_on_initdialog.

parent d91e9514
...@@ -323,6 +323,7 @@ static INT_PTR security_on_initdialog(HWND hsec) ...@@ -323,6 +323,7 @@ static INT_PTR security_on_initdialog(HWND hsec)
TRACE("using imagelist: %p\n", sd->himages); TRACE("using imagelist: %p\n", sd->himages);
if (!sd->himages) { if (!sd->himages) {
ERR("ImageList_Create failed!\n"); ERR("ImageList_Create failed!\n");
security_on_destroy(sd);
return FALSE; return FALSE;
} }
SendMessageW(sd->hlv, LVM_SETIMAGELIST, LVSIL_NORMAL, (LPARAM)sd->himages); SendMessageW(sd->hlv, LVM_SETIMAGELIST, LVSIL_NORMAL, (LPARAM)sd->himages);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment