TMF: Fix resource leak when trace indexer is re-created
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Mon, 9 Jun 2014 19:28:13 +0000 (15:28 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Tue, 10 Jun 2014 13:56:53 +0000 (09:56 -0400)
commit1a3f1ec3687f9b3a2ebc67aca8f796e01bfe5a04
treede3dd658abdc606bad6b46070eb032e52921f954
parent874af45a1fdb77960300a896427084fc65f78aa7
TMF: Fix resource leak when trace indexer is re-created

That happens when a trace was created with the default constructor, a
default indexer is set and when the trace is initialized, a new indexer
is created again, but the previous one is not disposed and the file
remains opened.

Change-Id: I1cb163130563419c81833fd9d383a3eeb2a4f9ee
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/28221
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
This page took 0.044516 seconds and 5 git commands to generate.