Remove observer on cleanup
This commit is contained in:
parent
6d9c6645a8
commit
839df0ee5a
1 changed files with 8 additions and 0 deletions
|
@ -50,6 +50,14 @@ using InAppTransactionCallback =
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cleanup.
|
||||||
|
*/
|
||||||
|
- (void)dealloc {
|
||||||
|
[[SKPaymentQueue defaultQueue] removeTransactionObserver:self];
|
||||||
|
[super dealloc];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the callback in the browser thread.
|
* Run the callback in the browser thread.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue