summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-02 10:32:24 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-02 10:32:24 +0100
commit2ab331e925eda5f2cc0d8bc3862e46bea60989b6 (patch)
treef1b305be79c4af17f1153656e13d049c76258ee9 /src
parent368832f2ff6837d9029020b41fb97fb148c3be31 (diff)
Fix memory leak.
Diffstat (limited to 'src')
-rw-r--r--src/lib/text_subtitle.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/text_subtitle.cc b/src/lib/text_subtitle.cc
index 0b2eef8f2..8e3f92026 100644
--- a/src/lib/text_subtitle.cc
+++ b/src/lib/text_subtitle.cc
@@ -78,6 +78,8 @@ TextSubtitle::TextSubtitle (shared_ptr<const TextSubtitleContent> content)
if (reader) {
_subtitles = sub::collect<vector<sub::Subtitle> > (reader->subtitles ());
}
+
+ delete reader;
}
ContentTime