Duane Clark wrote:
... At the end of ImageList_Destroy, there is a call to ZeroMemory, which obliterates the prev and next pointers which had been written there. Then another COMCTL32_Free call detects the error. At least I assume it is an error.
And indeed simply commenting out the ZeroMemory fixes the application. Though I have no idea what the correct fix would be.