diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index 1cf28aa7073..17b55be2b06 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -1539,9 +1539,6 @@ HEADER_NCDestroy (HEADER_INFO *infoPtr) Free(infoPtr->order); - if (infoPtr->himl) - ImageList_Destroy (infoPtr->himl); - SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0); Free (infoPtr); diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c index 4b8f0ede4d4..08d5065bbcb 100644 --- a/dlls/comctl32/tests/header.c +++ b/dlls/comctl32/tests/header.c @@ -980,7 +980,6 @@ static void test_hdm_imageMessages(HWND hParent) DestroyWindow(hChild); wasValid = ImageList_Destroy(hImageList); -todo_wine ok(wasValid, "Header must not free image list at destruction!\n"); }