Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Recycle nextData and previousOldData back into the objectPool upon co…
…mponent destroy
  • Loading branch information
mrxz committed Feb 11, 2024
commit 413a9e3ab77d7ca3c5088cee32f7d22fdb7b3c25
4 changes: 3 additions & 1 deletion src/core/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,11 @@ Component.prototype = {
*/
destroy: function () {
this.objectPool.recycle(this.attrValue);
this.objectPool.recycle(this.nextData);
this.objectPool.recycle(this.oldData);
this.objectPool.recycle(this.previousOldData);
this.objectPool.recycle(this.parsingAttrValue);
this.attrValue = this.oldData = this.parsingAttrValue = undefined;
this.nextData = this.attrValue = this.oldData = this.previousOldData = this.parsingAttrValue = undefined;
}
};

Expand Down