Bug 337002 EPartService leaks previously active part
A reference is kept to the previously active part. This is unnecessary. We only need it to fire events. After the deactivation events have been fired, we should no longer need to keep it lying around.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
private List<MPart> activatedParts = new ArrayList<MPart>();
		private List<MPart> deactivatedParts = new ArrayList<MPart>();
		private List<MPart> hiddenParts = new ArrayList<MPart>();
		private List<MPart> visibleParts = new ArrayList<MPart>();
		private int activated = 0;
		private int deactivated = 0;
		private int hidden = 0;
		private int visible = 0;
		private boolean valid = true;
		public void clear() {
			activated = 0;
			deactivated = 0;
			hidden = 0;
			visible = 0;
			activatedParts.clear();
			deactivatedParts.clear();
			hiddenParts.clear();
			visibleParts.clear();
			valid = true;
		}