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

This commit is contained in:
Florian Köberle 2011-08-03 23:24:09 +02:00 committed by Alexandre Julliard
parent 9a616111da
commit e68b9f9fc9
2 changed files with 0 additions and 4 deletions

View File

@ -1539,9 +1539,6 @@ HEADER_NCDestroy (HEADER_INFO *infoPtr)
Free(infoPtr->order); Free(infoPtr->order);
if (infoPtr->himl)
ImageList_Destroy (infoPtr->himl);
SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0); SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0);
Free (infoPtr); Free (infoPtr);

View File

@ -980,7 +980,6 @@ static void test_hdm_imageMessages(HWND hParent)
DestroyWindow(hChild); DestroyWindow(hChild);
wasValid = ImageList_Destroy(hImageList); wasValid = ImageList_Destroy(hImageList);
todo_wine
ok(wasValid, "Header must not free image list at destruction!\n"); ok(wasValid, "Header must not free image list at destruction!\n");
} }