Skip to content

minor memory leak in cdk table #12259

Closed
@FDIM

Description

@FDIM

Bug, feature request, or proposal:

Shouldn't static member be reset to null when all outlets are destroyed?

What is the expected behavior?

No memory leak

What is the current behavior?

Minor memory leak via mostRecentCellOutlet property in CdkCellOutlet

What are the steps to reproduce?

I hope screenshot below is enough to show case this

What is the use-case or motivation for changing an existing behavior?

To save some memory as it holds last outlet reference which potentially could have bigger impact. In my case actual component instance is not released because of this.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

CDK v6.3.3

Is there anything else we should know?

Heap snapshot in chrome:
image

Metadata

Metadata

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentperfThis issue is related to performance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions