getcolorcount() leaked in i_count_colors() on too many colors