[Konsole-devel] [Bug 70221] konsole crash after detaching a session	and ctrl+d in it attached the session back but konsole	crashed after that 
    Stephan Binner 
    binner at kde.org
       
    Thu Dec 18 22:11:04 UTC 2003
    
    
  
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=70221     
binner at kde.org changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
------- Additional Comments From binner at kde.org  2003-12-18 23:11 -------
Subject: kdebase/konsole/konsole
CVS commit by binner: 
Don't get confused if a detached session exits.
CCMAIL: 70221-done at bugs.kde.org
  M +7 -3      konsole_child.cpp   1.30
--- kdebase/konsole/konsole/konsole_child.cpp  #1.29:1.30
@@ -208,10 +208,14 @@ KonsoleChild::~KonsoleChild()
   se->setConnect(false);
 
-  TEWidget* old_te=te;
-  emit doneChild(this,se);
-  delete old_te;
   if (session_terminated) {
+    delete te;
     delete se;
     se=NULL;
+    emit doneChild(this,NULL);
+  }
+  else {
+    TEWidget* old_te=te;
+    emit doneChild(this,se);
+    delete old_te;
   }
    
    
More information about the konsole-devel
mailing list