Commit 56c8c536a377e1c931871166655ad595811d15e7
1 parent
619c9b7c
Exists in
master
and in
54 other branches
FIX: Fixed problem to remove temp file in windows
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
invesalius/data/slice_.py
@@ -244,6 +244,7 @@ class Slice(object): | @@ -244,6 +244,7 @@ class Slice(object): | ||
244 | def CloseProject(self): | 244 | def CloseProject(self): |
245 | self.imagedata = None | 245 | self.imagedata = None |
246 | f = self._matrix.filename | 246 | f = self._matrix.filename |
247 | + self._matrix._mmap.close() | ||
247 | self._matrix = None | 248 | self._matrix = None |
248 | os.remove(f) | 249 | os.remove(f) |
249 | self.current_mask = None | 250 | self.current_mask = None |