Bug 528849 - [PropertiesView] memory leaks in properties view

Clear the selection when the editor is closed

Change-Id: I88d07d9082c676a963681be6eda5ef8ce9d99080
Signed-off-by: Rolf Theunissen <rolf.theunissen@altran.com>
diff --git a/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheet.java b/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheet.java
index 5b7c988..ae93f15 100644
--- a/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheet.java
+++ b/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheet.java
@@ -369,6 +369,7 @@
 		if (part.equals(currentPart)) {
 			if (isPinned())
 				pinPropertySheetAction.setChecked(false);
+			currentSelection = null;
 			currentPart = null;
 		}
 		super.partClosed(part);