Fix Memory leak in UVRaster layers (#4706)