[TREELIST] Fix freeing of subitems in treelist_delete_item_helper().

There was multiple free of the ->subitems[0] (possible heap corruption),
combined with leaking the other subitems.