Remove observer on cleanup

This commit is contained in:
Cheng Zhao 2018-01-10 17:30:30 +09:00
parent 6d9c6645a8
commit 839df0ee5a

View file

@ -50,6 +50,14 @@ using InAppTransactionCallback =
return self;
}
/**
* Cleanup.
*/
- (void)dealloc {
[[SKPaymentQueue defaultQueue] removeTransactionObserver:self];
[super dealloc];
}
/**
* Run the callback in the browser thread.
*