Skip to content

Commit

Permalink
fix: memory leak temp solution
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhudev committed Feb 5, 2025
1 parent be261c7 commit f8431b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/engine-render/src/render-manager/render-unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ export class RenderUnit extends Disposable implements IRender {

this._activated$.next(false);
this._activated$.complete();

// Avoid memory leak. Basically it is because RenderUnit itself is leaking.
// We use this as a temporary solution to make CI pass.
// @ts-ignore
this._renderContext.activated$ = null;
// @ts-ignore
this._renderContext.activate = null;
// @ts-ignore
this._renderContext.deactivate = null;
}

/**
Expand Down

0 comments on commit f8431b3

Please sign in to comment.