Skip to content

Commit

Permalink
gui minor
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed May 24, 2021
1 parent f099ad4 commit 9ca4f62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions getdist/gui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,6 +1704,9 @@ def updatePlot(self):
item = self.plotWidget.layout().takeAt(i)
if item is None:
break
if hasattr(item, "widget"):
child = item.widget() # noqa
del child
del item
if hasattr(self, "canvas"):
del self.canvas
Expand Down

0 comments on commit 9ca4f62

Please sign in to comment.