mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Nulling out variables on teardown to fix memory leak in tests WW-1715
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@588189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -135,5 +135,15 @@ public abstract class AbstractTagTest extends StrutsTestCase {
|
||||
super.tearDown();
|
||||
pageContext.verify();
|
||||
request.verify();
|
||||
action = null;
|
||||
context = null;
|
||||
session = null;
|
||||
stack = null;
|
||||
writer = null;
|
||||
request = null;
|
||||
pageContext = null;
|
||||
response = null;
|
||||
servletContext = null;
|
||||
mockContainer = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -260,6 +260,7 @@ public class DateTagTest extends AbstractTagTest {
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
super.tearDown();
|
||||
tag = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user