aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/HanjaDic.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/HanjaDic.cxx')
-rw-r--r--win32/HanjaDic.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/win32/HanjaDic.cxx b/win32/HanjaDic.cxx
index bb9d2bf60..828641400 100644
--- a/win32/HanjaDic.cxx
+++ b/win32/HanjaDic.cxx
@@ -80,7 +80,12 @@ public:
~HanjaDic() {
if (SUCCEEDED(hr)) {
hr = HJinterface->CloseMainDic();
- HJinterface->Release();
+ try {
+ // This can never fail but IUnknown::Release is not marked noexcept.
+ HJinterface->Release();
+ } catch (...) {
+ // Ignore any exception
+ }
}
}