From 2ab331e925eda5f2cc0d8bc3862e46bea60989b6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 2 Jun 2016 10:32:24 +0100 Subject: Fix memory leak. --- src/lib/text_subtitle.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 content) if (reader) { _subtitles = sub::collect > (reader->subtitles ()); } + + delete reader; } ContentTime -- cgit v1.2.3