fixed memory leak in color export