The open source OpenXR runtime

ipc/android: Be sure to catch destructor exceptions, if any.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2308>

+7 -1
+1
doc/changes/misc_fixes/mr.2308.md
··· 1 + Fix: Reliability and robustness improvements on Android.
+6 -1
src/xrt/ipc/android/ipc_client_android.cpp
··· 102 102 if (ica == NULL) { 103 103 return; 104 104 } 105 - delete ica; 105 + try { 106 + delete ica; 107 + } catch (std::exception const &e) { 108 + // Must catch and ignore any exceptions in the destructor! 109 + U_LOG_E("Failure while destroying IPC clean: %s", e.what()); 110 + } 106 111 *ptr_ica = NULL; 107 112 }