mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-28 17:01:46 +01:00
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:
1 parent
8a7415eaea
commit
ec6e9c8b7f
2 files changed
+7
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
Fix: Reliability and robustness improvements on Android.
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user