forked from M-Labs/artiq
1
0
Fork 0

gui: setParent(None) before deleteLater() to remove dock appears unnecessary and causes memory corruption on Windows. Closes #362

This commit is contained in:
Sebastien Bourdeauducq 2016-03-30 11:39:36 +08:00
parent 059aa2f83e
commit deb9a60ca3
2 changed files with 0 additions and 2 deletions

View File

@ -167,7 +167,6 @@ class _AppletDock(QDockWidgetCloseDetect):
self.starting_stopping = False self.starting_stopping = False
if delete_self: if delete_self:
self.setParent(None)
self.deleteLater() self.deleteLater()
async def restart(self): async def restart(self):

View File

@ -356,7 +356,6 @@ class LogDockManager:
def on_dock_closed(self, name): def on_dock_closed(self, name):
dock = self.docks[name] dock = self.docks[name]
dock.setParent(None)
dock.deleteLater() dock.deleteLater()
del self.docks[name] del self.docks[name]
self.update_closable() self.update_closable()