when we remove a terminal we should remove the vte widget and remove the reference to it from the TerminatorTerm object. It's likely we are still leaking other gtk objects, but that is considerably less important than leaking vte.Terminal objects and thus child processes

This commit is contained in:
Chris Jones 2008-12-26 22:56:00 +00:00
parent 5c09dc4b6b
commit 04aae49867
1 changed files with 6 additions and 1 deletions

View File

@ -770,13 +770,18 @@ class Terminator:
grandparent.resize_children()
if isinstance(sibling, TerminatorTerm) and isinstance(sibling.get_parent(), gtk.Notebook):
sibling._titlebox.hide()
widget._vte.get_parent().remove(widget._vte)
widget._vte = None
self.term_list.remove (widget)
elif isinstance (parent, gtk.Notebook):
parent.remove(widget)
nbpages = parent.get_n_pages()
index = self.term_list.index (widget)
widget._vte.get_parent().remove(widget._vte)
widget._vte = None
self.term_list.remove (widget)
if nbpages == 1:
if self.window.allocation.height != gtk.gdk.screen_height():