From e68b9f9fc9ccfc59f4972582b067d87e509c12de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=B6berle?= Date: Wed, 3 Aug 2011 23:24:09 +0200 Subject: [PATCH] comctl32/header: Don't free the imagelist in HEADER_NCDestroy. --- dlls/comctl32/header.c | 3 --- dlls/comctl32/tests/header.c | 1 - 2 files changed, 4 deletions(-) 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"); }