I'm using a CTreeCtrl and SetItemData to set the node data. It would make sense that the Win32 API would handle freeing this data, but it does not. Every time I create a layer in my editor, I leak 8 bytes per layer when closing the program.
How do I free this data? CTreeCtrl::DeleteAllItems() does not work.