Commit
619c9b7c03bbca2e17fc932f12a16559dd9a0704
Exists in
master
and in
54 other branches
brush_pix, canvas_reeng, canvas_text, casmoothing_cython, clean, command-line, cython_threshold, debian_cython, editor_improvements, ff_mask, ff_mask_improv, ffill_gui, ffill_segmentation, fill_holes_auto, fixes_pre_beta5, get_pixel, import_mesh, inv3.0.1, mactoolbar, mactoolbar_bkp, manual_v3.1, mask_boolean_op, mask_boolean_op_bkp, mask_copy, mask_greatest_component, measure_canvas, measure_improvements, measure_placement_test, phoenix, region_growing_confidence, remove_local_wxpython, rmatsuda-fix_ref_MTC, rmatsuda-fix_remove_marker_bug, rmatsuda-trigger_bug_fix, rotvol, segmentation_menu, select_part, smoothing_bin, smoothing_bin_pll, surface_area, user_guide_en, usp-navegador, vti, vtk6, watershed, watershed_improvements, watershed_improvements_bkp, watershed_merge, workdir, wx2.9_mac, wxgtk3, wxgtk3_b5, wxgtk3_bkp, xmartlabs-command-line
Removing the temp file created by invesalius
| @@ -291,3 +291,4 @@ class Mask(): |
| @@ -291,3 +291,4 @@ class Mask(): |
291
| def __del__(self): |
291
| def __del__(self): |
292
| if self.is_shown: |
292
| if self.is_shown: |
293
| self.history._config_undo_redo(False) |
293
| self.history._config_undo_redo(False) |
| |
294
| + os.remove(self.temp_file) |
| @@ -243,6 +243,9 @@ class Slice(object): |
| @@ -243,6 +243,9 @@ class Slice(object): |
243
| |
243
| |
244
| def CloseProject(self): |
244
| def CloseProject(self): |
245
| self.imagedata = None |
245
| self.imagedata = None |
| |
246
| + f = self._matrix.filename |
| |
247
| + self._matrix = None |
| |
248
| + os.remove(f) |
246
| self.current_mask = None |
249
| self.current_mask = None |
247
| |
250
| |
248
| self.values = None |
251
| self.values = None |