More memory cleanup in gpu_refine_smooth
More cleanup in gpu_refine_smooth
More cleanup of gpu_refine_smooth