Re-enable NSException on Share extension dismiss.

Disable crash logging in the share extension because of this.
This commit is contained in:
Doug
2022-03-18 15:19:57 +00:00
committed by Doug
parent 158b2860ec
commit f91a56295f
4 changed files with 17 additions and 2 deletions
@@ -99,6 +99,10 @@
{
[self dismissViewControllerAnimated:true completion:^{
[self.presentingViewController dismissViewControllerAnimated:false completion:nil];
// FIXME: Share extension memory usage increase when launched several times and then crash due to some memory leaks.
// For now, we force the share extension to exit and free memory.
[NSException raise:@"Kill the app extension" format:@"Free memory used by share extension"];
}];
}