mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
When destructing a workarea, ignore buffer exceptions
Spotted by coverity, but probably harmless.
This commit is contained in:
parent
e10db6c7dd
commit
5890e9b831
@ -341,7 +341,10 @@ void GuiWorkArea::init()
|
||||
|
||||
GuiWorkArea::~GuiWorkArea()
|
||||
{
|
||||
d->buffer_view_->buffer().workAreaManager().remove(this);
|
||||
// If something is wrong with the buffer, we can ignore it safely
|
||||
try {
|
||||
d->buffer_view_->buffer().workAreaManager().remove(this);
|
||||
} catch(...) {}
|
||||
delete d->screen_;
|
||||
delete d->buffer_view_;
|
||||
delete d->cursor_;
|
||||
|
Loading…
Reference in New Issue
Block a user