Leak Memory in mattooltip
Memory Release
After mouse over control attach to matooltip
After mouse over control
angular 6.0.7 and material 6.3.2
in code file tooltip.ts used code
_isHandset: Observable<BreakpointState> = this._breakpointObserver.observe(Breakpoints.Handset);
and used this property in html but not unsubscibe in ts file
similar code unsubscripe in snackbar is correct
this._breakpointObserver.observe(Breakpoints.Handset).pipe(
takeUntil(overlayRef.detachments().pipe(take(1)))
).subscribe(state => {
if (state.matches) {
overlayRef.overlayElement.classList.add('mat-snack-bar-handset');
} else {
overlayRef.overlayElement.classList.remove('mat-snack-bar-handset');
}
});
The _isHandset observable is used together with the async pipe which means that it'll unsubscribe when the component is destroyed.
I have leak memory after destroyed component .
I Get Material source from Git and remove this property and after rebuild material source leak memory resolve and memory Released ;

It should unsubscribe, but actually I've got the same memory leak.
And it is not reproduced in latest material demo app.
Is it already fixed?
@sorterir could you clarify, why you've closed the issue?
Thank you
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
It should unsubscribe, but actually I've got the same memory leak.
And it is not reproduced in latest material demo app.
Is it already fixed?
@sorterir could you clarify, why you've closed the issue?
Thank you