cid#1485150 silence Uncaught exception

Change-Id: Ib7aa5dc2cd7e32d31e9da84e6dcb9e6ce5b472d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130888
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-03-02 16:26:53 +00:00
parent 6b6c9fc67c
commit 390bba81f5

View file

@ -145,7 +145,7 @@ View::~View()
if (mxDropMediaSizeListener)
{
mxDropMediaSizeListener->dispose();
suppress_fun_call_w_exception(mxDropMediaSizeListener->dispose());
mxDropMediaSizeListener.clear();
}
@ -157,7 +157,6 @@ View::~View()
while(PaintWindowCount())
{
// remove all registered OutDevs
// cid#1485150 silence Uncaught exception
suppress_fun_call_w_exception(DeleteWindowFromPaintView(GetFirstOutputDevice()));
}
}