Skip to content

Commit

Permalink
fix issue #153
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Feb 10, 2012
1 parent a3d25df commit 56923aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/nutz/mvc/NutFilter.java
Expand Up @@ -55,6 +55,8 @@ public void init(FilterConfig conf) throws ServletException {
}

public void destroy() {
Mvcs.resetALL();
Mvcs.set(selfName, null, null);
if(handler !=null)
handler.depose();
Mvcs.setServletContext(null);
Expand Down
3 changes: 3 additions & 0 deletions src/org/nutz/mvc/NutServlet.java
Expand Up @@ -35,8 +35,11 @@ public void init(ServletConfig servletConfig) throws ServletException {
}

public void destroy() {
Mvcs.resetALL();
Mvcs.set(selfName, null, null);
if(handler != null)
handler.depose();
Mvcs.setServletContext(null);
}

@Override
Expand Down

0 comments on commit 56923aa

Please sign in to comment.