aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditModel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/EditModel.cxx')
-rw-r--r--src/EditModel.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/EditModel.cxx b/src/EditModel.cxx
index e9186a026..5dd3cc87d 100644
--- a/src/EditModel.cxx
+++ b/src/EditModel.cxx
@@ -82,7 +82,12 @@ EditModel::EditModel() : braces{} {
}
EditModel::~EditModel() {
- pdoc->Release();
+ try {
+ // This never throws but isn't marked noexcept for compatibility
+ pdoc->Release();
+ } catch (...) {
+ // Ignore any exception
+ }
pdoc = nullptr;
}