Memory leak when reusing SwingController  XML
Forum Index -> ICEpdf General
Author Message

Joined: 28/Nov/2017 02:00:14
Messages: 5

Hello Patrick, and everyone else it concerns,

i discovered a memory leak when reusing the same instance of the SwingController.

This affects at least the versions ICEpdf 6.3.0 and higher.

The reason is that the DocumentViewControllerImpl in the closeDocument() method does not reset the toolMode. The line is commented out. This means that the MouseWheelListener in particular is not removed from the scrollPane.

To fix this I manually extended the given method by calling uninstallCurrentTool.

Best regards

Joined: 26/Oct/2004 00:00:00
Messages: 1982

Thanks for reporting this. It would appear that this would be the case of the DynamicZoomHandler tool was used. I'll create a ticket to make sure the reset takes place.

Thanks again.
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team