Commits

Etienne Perot committed 035797c

Help garbage collection

Comments (0)

Files changed (1)

 				os.remove(self.getCrushPath())
 			except:
 				pass
+			self.clear()
 			return False
 		p = subprocess.Popen(self.getArguments())
 		result = p.wait()
 		os.remove(self.getPath())
 		shutil.move(self.getCrushPath(), self.getPath())
 		print('Successful crush of', self.getPath())
+		self.clear()
 		return True
 	def close(self):
 		thr = threading.Thread(target=self.crush)