/[classpath]/classpath/java/awt/Component.java
ViewVC logotype

Diff of /classpath/java/awt/Component.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.51 by mark, Sat Dec 11 08:20:49 2004 UTC revision 1.52 by mkoch, Tue Jan 11 15:06:03 2005 UTC
# Line 3408  public abstract class Component Line 3408  public abstract class Component
3408     */     */
3409    public void removeNotify()    public void removeNotify()
3410    {    {
3411      if (peer != null)      // We null our peer field before disposing of it, such that if we're
3412        peer.dispose();      // not the event dispatch thread and the dispatch thread is awoken by
3413        // the dispose call, there will be no race checking the peer's null
3414        // status.
3415    
3416        ComponentPeer tmp = peer;
3417      peer = null;      peer = null;
3418        if (tmp != null)
3419          tmp.dispose();
3420    }    }
3421    
3422    /**    /**

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26