Handle filters which unregister themselves in AssExportFilterChain::Clear

This commit is contained in:
Thomas Goyne 2013-01-02 18:53:30 -08:00
parent 451de69e54
commit 7d6e246ace
1 changed files with 6 additions and 1 deletions

View File

@ -84,7 +84,12 @@ const FilterList *AssExportFilterChain::GetFilterList() {
}
void AssExportFilterChain::Clear() {
delete_clear(*filters());
while (filters()->size() > 0) {
AssExportFilter *f = filters()->back();
delete f;
if (filters()->size() && filters()->back() == f)
filters()->pop_back();
}
}
AssExportFilter *AssExportFilterChain::GetFilter(wxString const& name) {