Handle filters which unregister themselves in AssExportFilterChain::Clear
This commit is contained in:
parent
451de69e54
commit
7d6e246ace
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue