Commits

Daniel Atallah committed 6a19669

repowidget: invalidate the repo when the RepoWidget is destroyed, freeing memory

  • Participants
  • Parent commits 5aba622
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

         self.revset = set()
         self.namedTabs = {}
         self.repolen = len(repo)
+        self.destroyed.connect(self.repo.thginvalidate)
 
         if repo.parents()[0].rev() == -1:
             self._reload_rev = 'tip'