[PATCH 2/2] comctl32/header: Don't free the imagelist in HEADER_NCDestroy.

Florian Köberle florian at fkoeberle.de
Wed Aug 3 16:24:09 CDT 2011


---
 dlls/comctl32/header.c       |    3 ---
 dlls/comctl32/tests/header.c |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index 1cf28aa..17b55be 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 4b8f0ed..08d5065 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");
 }
 
-- 
1.7.6




More information about the wine-patches mailing list