Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: destroy chart never free memory #18

Open
ilshiyi opened this issue Nov 27, 2012 · 2 comments
Open

Bug: destroy chart never free memory #18

ilshiyi opened this issue Nov 27, 2012 · 2 comments

Comments

@ilshiyi
Copy link

ilshiyi commented Nov 27, 2012

The destroy() method never free the memory. After many times of drawing and destroying chart, the memory gets larger and larger.
Here is an example: http://jsfiddle.net/ilshiyi/8FU9v/4/

@anupchaudhari
Copy link

Hello ilshiyi,
I had the same problem. I fixed with a HACK-ish code. The event listeners would hold on to the destroyed DOM objects as well as some DOM objects were referenced by closures (in my case). So a temporary solution is to explicitly release and destroy each reference. I did it and it worked for me.
Here is the NOT SO GOOD (but working) code: http://jsfiddle.net/PgyaQ/4/
Hope it helps. :)

@ilshiyi ilshiyi closed this as completed May 9, 2013
@ilshiyi ilshiyi reopened this May 9, 2013
@ilshiyi
Copy link
Author

ilshiyi commented May 9, 2013

Thanks anupchaudhari, it is very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants