Florian Köberle : comctl32/header: Don' t free the imagelist in HEADER_NCDestroy.

Alexandre Julliard julliard at winehq.org
Thu Aug 4 12:22:09 CDT 2011


Module: wine
Branch: master
Commit: e68b9f9fc9ccfc59f4972582b067d87e509c12de
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e68b9f9fc9ccfc59f4972582b067d87e509c12de

Author: Florian Köberle <florian at fkoeberle.de>
Date:   Wed Aug  3 23:24:09 2011 +0200

comctl32/header: Don't free the imagelist in HEADER_NCDestroy.

---

 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");
 }
 




More information about the wine-cvs mailing list