mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3610] fix pdf worker memory leak (#3843)
* fix pdf worker memory leak * test fixes * fix computed style test * fix lint
This commit is contained in:
committed by
Eugenio Romano
parent
4a9431bf10
commit
bc0865bdb9
@@ -187,6 +187,14 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
||||
this.documentContainer.removeEventListener('pagesloaded', this.onPagesLoaded, true);
|
||||
this.documentContainer.removeEventListener('textlayerrendered', this.onPagerendered, true);
|
||||
}
|
||||
|
||||
if (this.loadingTask) {
|
||||
try {
|
||||
this.loadingTask.destroy();
|
||||
} catch {}
|
||||
|
||||
this.loadingTask = null;
|
||||
}
|
||||
}
|
||||
|
||||
toggleThumbnails() {
|
||||
|
Reference in New Issue
Block a user