forked from mia/Aegisub
Fix crash on exit
Subtitle formats unregister themselves when deleted, so using delete_clear on the list of subtitle formats does not work very well.
This commit is contained in:
parent
5513d774bf
commit
66becbab16
1 changed files with 2 additions and 1 deletions
|
@ -310,7 +310,8 @@ void SubtitleFormat::LoadFormats() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SubtitleFormat::DestroyFormats() {
|
void SubtitleFormat::DestroyFormats() {
|
||||||
delete_clear(formats);
|
while (!formats.empty())
|
||||||
|
delete formats.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class Cont, class Pred>
|
template<class Cont, class Pred>
|
||||||
|
|
Loading…
Reference in a new issue