Fix: one potential memleak and correct colorpicker redraw of tonecurves