tn5250j/src/org/tn5250j Gui5250.java,1.58,1.59

"Kenneth J. Pouncey" <[email protected]> Wed, 23 Jun 2004 10:46:25 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31670

Modified Files:
	Gui5250.java 
Log Message:
Fix memory leak - submitted by Luc

Index: Gui5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Gui5250.java,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** Gui5250.java	14 Apr 2004 12:15:52 -0000	1.58
--- Gui5250.java	23 Jun 2004 10:46:22 -0000	1.59
***************
*** 663,666 ****
--- 663,670 ----
  
        vt.disconnect();
+       // Added by Luc to fix a memory leak. The keyHandler was still receiving
+       //   events even though nothing was really attached.
+       keyHandler.sessionClosed((Session)this);
+       keyHandler = null;
  
     }



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com