Bug 330467 [Compatibility] Workbench window menu bar submenus keeps growing
Submenus like 'Search > Text' keeps growing in size.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java
.toArray(new ContributionRecord[vals.size()])) {
			if (record.menuModel == menuModel) {
				record.dispose();
				for (MMenuElement copy : record.generatedElements) {
					modelContributionToRecord.remove(copy);
					if (copy instanceof MMenu) {
						MMenu menuCopy = (MMenu) copy;
						cleanUp(menuCopy);
						MenuManager copyManager = getManager(menuCopy);
						clearModelToManager(menuCopy, copyManager);
						if (copyManager != null) {
							record.manager.remove(copyManager);
							copyManager.dispose();
						}
					} else {
						IContributionItem ici = getContribution(copy);
						clearModelToContribution(copy, ici);
						if (ici != null) {
							record.manager.remove(ici);
						}
					}
				}
				record.generatedElements.clear();
			}
		}
	}
	/**
	 * @param menuModel
	 * @param menuBar
	 */