javalover520 / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Memory leak in GotoLineDialog #63

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
GotoLineDialog keeps strong reference to JEditorPane
(private JTextComponent text)
which causes memory leak in my app
(referenced JEditorPane and GotoLineDialog are not garbage collected).

There may be more leaks in other JSyntaxPane components,
but I didn't tested it yet ;)

Thanks

Original issue reported on code.google.com by twardow...@gmail.com on 3 Mar 2009 at 8:39

GoogleCodeExporter commented 8 years ago
Thanks for the report.  Any suggestions for a fix though?  I'm a bit new to 
this. 
Would a WeakReference to the component eliminate the leak?

Original comment by ayman.al...@gmail.com on 4 Mar 2009 at 9:11

GoogleCodeExporter commented 8 years ago
I believe that was fixed with all refactoring and using Weak links.

Original comment by ayman.al...@gmail.com on 13 May 2009 at 5:44