From: smbaker Date: Thu, 14 Jul 2011 23:37:11 +0000 (-0700) Subject: fix segfault on sface exit in ubuntu X-Git-Tag: sface-0.1-17~14 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=194e800bc6c16d787fff48410a4ef71928efe8fb;hp=cc8ab984a1f9d51d61368b3602b5059bffbfa2a6;ds=sidebyside fix segfault on sface exit in ubuntu --- diff --git a/sface/mainwindow.py b/sface/mainwindow.py index 436756a..b361b22 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -121,8 +121,10 @@ class MainWindow(QWidget): def __init__(self, parent=None): QWidget.__init__(self, parent) - self.logWindow = LogWindow(self) - self.rspecWindow = RSpecWindow(self) + # These are top-level windows and should be initialized with parent set + # to our parent. Otherwise, getting a segfault on exit in Ubuntu. + self.logWindow = LogWindow(parent) + self.rspecWindow = RSpecWindow(parent) self.pix = QLabel(self)