mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
No double delete.
This commit is contained in:
parent
96c08ba235
commit
8a2dfc771a
@ -1980,6 +1980,7 @@ destroy_readers() {
|
|||||||
void
|
void
|
||||||
cleanup() {
|
cleanup() {
|
||||||
delete cluster_helper;
|
delete cluster_helper;
|
||||||
|
cluster_helper = NULL;
|
||||||
vector<filelist_t>::const_iterator file;
|
vector<filelist_t>::const_iterator file;
|
||||||
|
|
||||||
destroy_readers();
|
destroy_readers();
|
||||||
@ -1991,16 +1992,22 @@ cleanup() {
|
|||||||
attachments.clear();
|
attachments.clear();
|
||||||
|
|
||||||
delete kax_tags;
|
delete kax_tags;
|
||||||
|
kax_tags = NULL;
|
||||||
delete tags_from_cue_chapters;
|
delete tags_from_cue_chapters;
|
||||||
|
tags_from_cue_chapters = NULL;
|
||||||
delete kax_chapters;
|
delete kax_chapters;
|
||||||
|
kax_chapters = NULL;
|
||||||
delete kax_as;
|
delete kax_as;
|
||||||
|
kax_as = NULL;
|
||||||
delete kax_info_chap;
|
delete kax_info_chap;
|
||||||
|
kax_info_chap = NULL;
|
||||||
|
|
||||||
delete seguid_link_previous;
|
delete seguid_link_previous;
|
||||||
|
seguid_link_previous = NULL;
|
||||||
delete seguid_link_next;
|
delete seguid_link_next;
|
||||||
|
seguid_link_next = NULL;
|
||||||
delete seguid_forced;
|
delete seguid_forced;
|
||||||
|
seguid_forced = NULL;
|
||||||
delete cluster_helper;
|
|
||||||
|
|
||||||
utf8_done();
|
utf8_done();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user