Skip to content

Major memory leak fix#2272

Closed
maxkna111 wants to merge 5 commits intomasterfrom
unknown repository
Closed

Major memory leak fix#2272
maxkna111 wants to merge 5 commits intomasterfrom
unknown repository

Conversation

@maxkna111
Copy link
Copy Markdown
Contributor

the detach event listener was not detached properly after calling .destroy
so I basically added resizeIfElementDisplayed to $$ (this), and detach the event listener properly
also .remove must be called on $$.resizeFunction on destroy,
anyways this fixed all my memory issue,
Fix #926

Copy link
Copy Markdown
Member

@aendra-rininsland aendra-rininsland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nazihahmed Thank you so much looking into this, it's been an issue that's plagued C3 for ages. That said, the changes to package.json need to be reverted or otherwise deployment will be broken.

Comment thread package.json
@@ -1,5 +1,5 @@
{
"name": "c3",
"name": "alooma-c3",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break everything if merged into master.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know i did this to publish to npm, i will change into a specific branch for merging for you

@maxkna111 maxkna111 closed this Jan 29, 2018
@maxkna111
Copy link
Copy Markdown
Contributor Author

#2273

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

Successfully merging this pull request may close these issues.

Repeatedly calling c3.generate leaks memory in 0.4.9

2 participants