Memory leak when playing video via MSE

we are using HLS.JS and Shaka to play video via MSE and EME APIs.
We ha e observed on different models of the TV that eventually memory will run out and this is dependent on duration of playback and video quality.

We have been chasing this for a while and you can also see open issue with similar description on Shaka Github issues:

Of course same medias on native video (

When using HLS.JS and Shaka we have tried reducing buffer sizes via each respective config options of the libraries and it just gives a few extra minutes of play but memory usage sky rockets until app crashes.

We are measuring app memory consumption via the standard Tizen APIs:

Same issue can be reproduced on your sample in github repo:

How can we go ahead with understanding this issue and how to manage?