1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00

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:
Thomas Goyne 2012-11-30 11:47:24 -08:00
parent 5513d774bf
commit 66becbab16

View File

@ -310,7 +310,8 @@ void SubtitleFormat::LoadFormats() {
}
void SubtitleFormat::DestroyFormats() {
delete_clear(formats);
while (!formats.empty())
delete formats.back();
}
template<class Cont, class Pred>