Fix memory leak in the value labels dialog