Fix JSF memory leak

This is not a great fix, but I can't see any other
way to do it unless JSF fixes their crappy injection SPI