You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2002/04/17 11:44:40 UTC
cvs commit: xml-batik/sources/org/apache/batik/apps/svgbrowser Main.java
tkormann 02/04/17 02:44:39
Modified: sources/org/apache/batik/apps/svgbrowser Main.java
Log:
fix a huge memory leak in the viewer
When closing a window, the document, canvas... will go to GC
Revision Changes Path
1.28 +2 -2 xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java
Index: Main.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- Main.java 18 Mar 2002 10:28:19 -0000 1.27
+++ Main.java 17 Apr 2002 09:44:39 -0000 1.28
@@ -53,7 +53,7 @@
* This class contains the main method of an SVG viewer.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: Main.java,v 1.27 2002/03/18 10:28:19 hillion Exp $
+ * @version $Id: Main.java,v 1.28 2002/04/17 09:44:39 tkormann Exp $
*/
public class Main implements Application {
@@ -385,7 +385,7 @@
if (viewerFrames.size() == 0) {
System.exit(0);
}
- f.setVisible(false);
+ f.dispose();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org