Hello I am trying to write an HTML5 canvas app to be used in Spotify.

The app is working ok but after a few minutes Spotify slows way down and eventually becomes unresponsive. I have to force-quit.

Looking at the 'memory' section of the Timeline feature in the debugger (chrome based I think), it seems to just go up and up -- but I am not sure what that memory graph means -- is it memory currently allocated or just memory used (and possibly released) during the app's lifetime?

I'm new to javascript so I am not sure what would cause memory leaks. I redraw the canvas all the time, it is always animating. But as far as allocating objects I think I am only doing that at the beginning.

Thanks for any suggestions/ideas!
P