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

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2308>
This commit is contained in:
Rylie Pavlik committed 2024-08-21 10:58:26 -05:00
1 parent 8a7415eaea
commit ec6e9c8b7f
2 files changed
+7 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
Fix: Reliability and robustness improvements on Android.
+6 -1
View File
@@ -102,6 +102,11 @@ ipc_client_android_destroy(struct ipc_client_android **ptr_ica)
if (ica == NULL) {
return;
}
delete ica;
try {
delete ica;
} catch (std::exception const &e) {
// Must catch and ignore any exceptions in the destructor!
U_LOG_E("Failure while destroying IPC clean: %s", e.what());
}
*ptr_ica = NULL;
}