tmf: Bug 490400: Leaking widgets due to incorrect cleanup in dispose()
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / internal / tmf / ui / viewers / statistics / TmfStatisticsViewer.java
index 34c9718ab23d7b84d41c59c57aeb12849e317f14..ac89d9bb9b96dc58de22b4721134cf009a07bba0 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2012, 2015 Ericsson
+ * Copyright (c) 2012, 2016 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -153,10 +153,18 @@ public class TmfStatisticsViewer extends TmfViewer {
 
         initContent(parent);
         initInput();
+
+        fSash.addDisposeListener((e) -> {
+            internalDispose();
+        });
     }
 
     @Override
     public void dispose() {
+        fSash.dispose();
+    }
+
+    private void internalDispose() {
         super.dispose();
         if (fWaitCursor != null) {
             fWaitCursor.dispose();
This page took 0.030181 seconds and 5 git commands to generate.