diff --git a/src/calibre/gui2/add.py b/src/calibre/gui2/add.py index 601c620e9c..026fabea07 100644 --- a/src/calibre/gui2/add.py +++ b/src/calibre/gui2/add.py @@ -369,8 +369,13 @@ class Adder(QObject): # {{{ except: pass self._parent = None + self.pd.setParent(None) + del self.pd + self.pd = None if hasattr(self, 'db_adder'): self.db_adder.setParent(None) + del self.db_adder + self.db_adder = None @property