From c006fc3e483e14f58599a4d6c545c8d0e1145ed9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 8 Jan 2024 13:30:34 -0800 Subject: [PATCH] iOS: crash fix: don't try to deallocate IosShare We have a strange crash on exit on iOS and this looks like the likely culprit. And since it happens at app exit, I'm not too worried about leaking memory... Signed-off-by: Dirk Hohndel --- ios/ios-share.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/ios-share.mm b/ios/ios-share.mm index e063fb972..ceb990a2b 100644 --- a/ios/ios-share.mm +++ b/ios/ios-share.mm @@ -30,7 +30,9 @@ IosShare::IosShare() : self(NULL) { } IosShare::~IosShare() { - [(id)self dealloc]; +// this call below apparently caused a crash at exit. +// since at exit I really don't care much about a memory leak, this should be fine. +// [(id)self dealloc]; } // simplified method that fills subject, recipient, and body for support emails