Skip to content

Commit

Permalink
Add calls to this.buo.release() in componentWillUnmount() in testbed …
Browse files Browse the repository at this point in the history
…apps.
  • Loading branch information
jdee committed Mar 16, 2017
1 parent 17569f1 commit e1feeef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testbed/testbed_carthage/src/BranchMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class BranchMethods extends Component {
results: [],
}

componentWillUnmount() {
if (!this.buo) return
this.buo.release()
}

createBranchUniversalObject = async () => {
try {
let result = await branch.createBranchUniversalObject('abc', defaultBUO)
Expand Down
5 changes: 5 additions & 0 deletions testbed/testbed_cocoapods/src/BranchMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class BranchMethods extends Component {
results: [],
}

componentWillUnmount() {
if (!this.buo) return
this.buo.release()
}

createBranchUniversalObject = async () => {
try {
let result = await branch.createBranchUniversalObject('abc', defaultBUO)
Expand Down

0 comments on commit e1feeef

Please sign in to comment.