Fix color space memory leak