Memory leak fixed. DocPane was holding reference to the last document. 

Memory leak fixed. DocPane was holding reference to the last document. This is normally not a problem, however when the document is large, and will not be reused - meaning there will be no another ActiveContent on the particular pane, the memory will never be collected.