Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gui: fix potential memleak when closing ViewFrames
  • Loading branch information
Taimon committed Sep 28, 2009
1 parent 81974bd commit 8d494cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infinity/gui/ViewFrame.java
Expand Up @@ -73,6 +73,9 @@ protected void windowClosing() throws Exception
{
if (viewable instanceof Closeable)
((Closeable)viewable).close();

this.viewable = null;
this.getContentPane().removeAll();
}
}

0 comments on commit 8d494cd

Please sign in to comment.