Skip to content

Commit

Permalink
Merge pull request #119 from Flippo24/patch-1
Browse files Browse the repository at this point in the history
Clean up instances at program end
  • Loading branch information
pedroCabrera authored Feb 19, 2024
2 parents 4e83ca8 + b910d27 commit 31ce804
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PyFlow/Core/Common.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,8 @@ def __init__(self, cls):
self.allInstances.append(self)

def destroy(self):
if ('destroy' in dir(self.instance)):
self.instance.destroy()
del self.instance
self.instance = None

Expand Down

0 comments on commit 31ce804

Please sign in to comment.