forked from external-repos/squoosh
Fix memory leaks (#1054)
This commit is contained in:
@@ -377,6 +377,7 @@ export default class Compress extends Component<Props, State> {
|
||||
|
||||
componentWillUnmount(): void {
|
||||
updateDocumentTitle({ loading: false });
|
||||
this.widthQuery.removeListener(this.onMobileWidthChange);
|
||||
this.mainAbortController.abort();
|
||||
for (const controller of this.sideAbortControllers) {
|
||||
controller.abort();
|
||||
|
||||
Reference in New Issue
Block a user