mirror of https://github.com/odrling/Aegisub
Handle filters which unregister themselves in AssExportFilterChain::Clear
This commit is contained in:
parent
451de69e54
commit
7d6e246ace
|
@ -84,7 +84,12 @@ const FilterList *AssExportFilterChain::GetFilterList() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AssExportFilterChain::Clear() {
|
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) {
|
AssExportFilter *AssExportFilterChain::GetFilter(wxString const& name) {
|
||||||
|
|
Loading…
Reference in New Issue