tmf: Correctly dispose sub-analyses in the statistics module
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 5 Feb 2014 22:54:59 +0000 (17:54 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 6 Feb 2014 15:21:47 +0000 (10:21 -0500)
Change-Id: I459aed9a7b22173d996afffdb29530a5abb44740
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/21591
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
IP-Clean: Genevieve Bastien <gbastien+lttng@versatic.net>

org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/statistics/TmfStatisticsModule.java

index 0d03d4e54cacffed3eadc73cb6d71735927d354d..67c580faa2a01bf4d2ec31bc563f6bb2f6810aeb 100644 (file)
@@ -82,6 +82,17 @@ public class TmfStatisticsModule extends TmfAbstractAnalysisModule
     // TmfAbstractAnalysisModule
     // ------------------------------------------------------------------------
 
+    @Override
+    public void dispose() {
+        /*
+         * The sub-analyses are not registered to the trace directly, so we need
+         * to tell them when the trace is disposed.
+         */
+        super.dispose();
+        totalsModule.dispose();
+        eventTypesModule.dispose();
+    }
+
     @Override
     protected boolean executeAnalysis(IProgressMonitor monitor) throws TmfAnalysisException {
         ITmfTrace trace = getTrace();
This page took 0.026273 seconds and 5 git commands to generate.