# File lib/gd2/palette.rb, line 164 def deallocate(color) color = exact(color) unless color.index return nil if color.nil? || color.index.nil? SYM[:gdImageColorDeallocate].call(@image.image_ptr, color.index) nil end