diff --git a/src/store/segmentGroups.ts b/src/store/segmentGroups.ts index fb9929d98..b04238103 100644 --- a/src/store/segmentGroups.ts +++ b/src/store/segmentGroups.ts @@ -60,6 +60,7 @@ const writeImage = async (format: string, image: vtkImageData) => { } const result = await writeImageItk(null, itkImage, `image.${format}`); + result.webWorker?.terminate(); return result.serializedImage.data; };