From 8a2dfc771ae5864fb7866497ea98dea3c51772cf Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 26 May 2005 11:25:27 +0000 Subject: [PATCH] No double delete. --- src/merge/output_control.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/merge/output_control.cpp b/src/merge/output_control.cpp index 0c1b2e320..fd0c15bef 100644 --- a/src/merge/output_control.cpp +++ b/src/merge/output_control.cpp @@ -1980,6 +1980,7 @@ destroy_readers() { void cleanup() { delete cluster_helper; + cluster_helper = NULL; vector::const_iterator file; destroy_readers(); @@ -1991,16 +1992,22 @@ cleanup() { attachments.clear(); delete kax_tags; + kax_tags = NULL; delete tags_from_cue_chapters; + tags_from_cue_chapters = NULL; delete kax_chapters; + kax_chapters = NULL; delete kax_as; + kax_as = NULL; delete kax_info_chap; + kax_info_chap = NULL; delete seguid_link_previous; + seguid_link_previous = NULL; delete seguid_link_next; + seguid_link_next = NULL; delete seguid_forced; - - delete cluster_helper; + seguid_forced = NULL; utf8_done(); }