mirror of
https://github.com/electron/electron.git
synced 2026-01-31 02:08:34 -05:00
Remove observer on cleanup
This commit is contained in:
@@ -50,6 +50,14 @@ using InAppTransactionCallback =
|
||||
return self;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleanup.
|
||||
*/
|
||||
- (void)dealloc {
|
||||
[[SKPaymentQueue defaultQueue] removeTransactionObserver:self];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the callback in the browser thread.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user