[BUG] Fixed memory leak generated by never released colorSpace