[prev in list] [next in list] [prev in thread] [next in thread]
List: batik-dev
Subject: cvs commit: xml-batik/test-sources/org/apache/batik/swing JSVGMemoryLeakTest.java
From: deweese () apache ! org
Date: 2003-07-15 1:11:27
[Download RAW message or body]
deweese 2003/07/14 18:11:27
Modified: sources/org/apache/batik/apps/svgbrowser
JSVGViewerFrame.java
sources/org/apache/batik/swing/svg JSVGComponent.java
test-sources/org/apache/batik/swing JSVGMemoryLeakTest.java
Log:
Fixed a bug with fullscreen mode (F11).
Revision Changes Path
1.95 +2 -2 xml-batik/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
Index: JSVGViewerFrame.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- JSVGViewerFrame.java 17 Jun 2003 01:37:56 -0000 1.94
+++ JSVGViewerFrame.java 15 Jul 2003 01:11:26 -0000 1.95
@@ -2092,7 +2092,7 @@
*/
public void managerStopped(UpdateManagerEvent e) {
if (debug) {
- System.out.println("Update Manager Stopped");
+ System.out.println("Update manager stopped");
}
managerStopped = true;
playAction.update(false);
1.76 +2 -3 xml-batik/sources/org/apache/batik/swing/svg/JSVGComponent.java
Index: JSVGComponent.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/swing/svg/JSVGComponent.java,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- JSVGComponent.java 10 Jul 2003 12:01:20 -0000 1.75
+++ JSVGComponent.java 15 Jul 2003 01:11:26 -0000 1.76
@@ -341,9 +341,8 @@
addSVGLoadEventDispatcherListener((SVGListener)listener);
}
- public void removeNotify() {
+ public void dispose() {
setSVGDocument(null);
- super.removeNotify();
}
/**
1.5 +3 -3 xml-batik/test-sources/org/apache/batik/swing/JSVGMemoryLeakTest.java
Index: JSVGMemoryLeakTest.java
===================================================================
RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/swing/JSVGMemoryLeakTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- JSVGMemoryLeakTest.java 10 Jul 2003 02:01:27 -0000 1.4
+++ JSVGMemoryLeakTest.java 15 Jul 2003 01:11:27 -0000 1.5
@@ -17,6 +17,7 @@
import org.apache.batik.test.TestReport;
import org.apache.batik.test.MemoryLeakTest;
+import java.awt.Container;
import java.io.File;
import java.net.MalformedURLException;
import javax.swing.SwingUtilities;
@@ -62,10 +63,9 @@
SwingUtilities.invokeAndWait( new Runnable() {
public void run() {
// System.out.println("In Invoke");
- theCanvas.stopProcessing();
+ theCanvas.dispose();
theFrame.remove(theCanvas);
theFrame.removeNotify();
- theCanvas.removeNotify();
theFrame=null;
theCanvas=null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic