Fix memory leaks caused by CKEDITOR.filter.instances storing nested editables' filters forever #1722
Closed
Description
Are you reporting a feature request or a bug?
Bug
References
Provide detailed reproduction steps (if any)
Every nested editable which has allowed content rules defined has its filter instance. These instances are stored in nested editable instances, which most likely are correctly garbage collected. But filter instances are also stored in CKEDITOR.filter.instances and they are kept there forever.
We could have filter.destroy()
method removing instance from the instances hash and doing other cleanup if necessary. Then we could destroy filters when destroying widgets.
Expected result
All filter instances should be removed.
Actual result
Filter instances are also stored in CKEDITOR.filter.instances and they are kept there forever.
Other details
- Browser: …
- OS: …
- CKEditor version: 4.3.0+
- Installed CKEditor plugins: …