Skip to content

Commit 6b49fb5

Browse files
authoredFeb 12, 2024
Recycle nextData and previousOldData back into the objectPool upon component destroy (#5458)
Co-authored-by: Noeri Huisman <[email protected]>
1 parent 18b25a0 commit 6b49fb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/core/component.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,11 @@ Component.prototype = {
578578
*/
579579
destroy: function () {
580580
this.objectPool.recycle(this.attrValue);
581+
this.objectPool.recycle(this.nextData);
581582
this.objectPool.recycle(this.oldData);
583+
this.objectPool.recycle(this.previousOldData);
582584
this.objectPool.recycle(this.parsingAttrValue);
583-
this.attrValue = this.oldData = this.parsingAttrValue = undefined;
585+
this.nextData = this.attrValue = this.oldData = this.previousOldData = this.parsingAttrValue = undefined;
584586
}
585587
};
586588

0 commit comments

Comments
 (0)
Please sign in to comment.