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>