Skip to content

Commit 6fde084

Browse files
authored
Merge pull request aframevr#3842 from gfodor/bug/double-free-if-remove-called
Clear references to freed pooled memory to avoid double free
2 parents 88e3091 + b5031ca commit 6fde084

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/core/component.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ function wrapRemove (removeMethod) {
678678
this.objectPool.recycle(this.attrValue);
679679
this.objectPool.recycle(this.oldData);
680680
this.objectPool.recycle(this.parsingAttrValue);
681+
682+
this.attrValue = this.oldData = this.parsingAttrValue = undefined;
681683
};
682684
}
683685

0 commit comments

Comments
 (0)