macosx: Fix some input_item_t leaks.