Skip to content

Commit e1feeef

Browse files
committed
Add calls to this.buo.release() in componentWillUnmount() in testbed apps.
1 parent 17569f1 commit e1feeef

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

testbed/testbed_carthage/src/BranchMethods.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ class BranchMethods extends Component {
1717
results: [],
1818
}
1919

20+
componentWillUnmount() {
21+
if (!this.buo) return
22+
this.buo.release()
23+
}
24+
2025
createBranchUniversalObject = async () => {
2126
try {
2227
let result = await branch.createBranchUniversalObject('abc', defaultBUO)

testbed/testbed_cocoapods/src/BranchMethods.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ class BranchMethods extends Component {
1717
results: [],
1818
}
1919

20+
componentWillUnmount() {
21+
if (!this.buo) return
22+
this.buo.release()
23+
}
24+
2025
createBranchUniversalObject = async () => {
2126
try {
2227
let result = await branch.createBranchUniversalObject('abc', defaultBUO)

0 commit comments

Comments
 (0)