Commit 32e9b305 authored by Philippe Merle's avatar Philippe Merle

Unset the request context to avoid a memory leak.

This memory leak appears on the log files of Apache Tomcat 6.0.x.
Thank to Jeremie Guillemotte from Open Wide for pointing this issue out.
parent 85012a8b
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
* Contact: frascati@ow2.org * Contact: frascati@ow2.org
* *
* Author: Lionel Seinturier * Author: Lionel Seinturier
*
* Contributor: Philippe Merle
*/ */
package org.ow2.frascati.tinfi.control.content; package org.ow2.frascati.tinfi.control.content;
...@@ -152,6 +154,14 @@ implements Controller, SCAExtendedContentController { ...@@ -152,6 +154,14 @@ implements Controller, SCAExtendedContentController {
public void releaseFcContent( Object content, boolean isEndMethod ) { public void releaseFcContent( Object content, boolean isEndMethod ) {
sm.releaseFcContent(content,isEndMethod); sm.releaseFcContent(content,isEndMethod);
//
// See issue http://jira.ow2.org/browse/FRASCATI-105
//
// Unset the request context to avoid a memory leak.
// This memory leak appears on the log files of Apache Tomcat 6.0.x.
//
setRequestContext(null);
} }
public void eagerInit() throws ContentInstantiationException { public void eagerInit() throws ContentInstantiationException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment