diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-02 10:32:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-02 10:32:24 +0100 |
| commit | 2ab331e925eda5f2cc0d8bc3862e46bea60989b6 (patch) | |
| tree | f1b305be79c4af17f1153656e13d049c76258ee9 | |
| parent | 368832f2ff6837d9029020b41fb97fb148c3be31 (diff) | |
Fix memory leak.
| -rw-r--r-- | src/lib/text_subtitle.cc | 2 |
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 |
