Revision: 18771
http://sourceforge.net/p/gate/code/18771
Author: markagreenwood
Date: 2015-06-08 08:38:43 +0000 (Mon, 08 Jun 2015)
Log Message:
-----------
don't add popup menus to the gui roots list, Swing will dispose of them
properly and as a new version is created each time the menu is displayed
keeping hold of them is also a horrible memory leak
Modified Paths:
--------------
gate/trunk/src/main/gate/gui/MainFrame.java
Modified: gate/trunk/src/main/gate/gui/MainFrame.java
===================================================================
--- gate/trunk/src/main/gate/gui/MainFrame.java 2015-06-08 01:19:55 UTC (rev
18770)
+++ gate/trunk/src/main/gate/gui/MainFrame.java 2015-06-08 08:38:43 UTC (rev
18771)
@@ -1308,10 +1308,7 @@
appsMenu.setText("Create New Application");
appsMenu.setIcon(MainFrame.getIcon("applications"));
appsPopup.add(appsMenu);
- appsPopup.add(new ReadyMadeMenu());
-
- guiRoots.add(appsPopup);
- guiRoots.add(appsMenu);
+ appsPopup.add(new ReadyMadeMenu());
appsPopup.add(new XJMenuItem(new LoadResourceFromFileAction(),
MainFrame.this));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs