No double delete.

This commit is contained in:
Moritz Bunkus 2005-05-26 11:25:27 +00:00
parent 96c08ba235
commit 8a2dfc771a

View File

@ -1980,6 +1980,7 @@ destroy_readers() {
void
cleanup() {
delete cluster_helper;
cluster_helper = NULL;
vector<filelist_t>::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();
}