Skip to content

Commit

Permalink
GRAPHICS: Catch all exceptions in the GraphicsManager destructor
Browse files Browse the repository at this point in the history
This fixes Coverity Scan issue #1399021.
  • Loading branch information
DrMcCoy committed Feb 25, 2019
1 parent 25bec06 commit 6c703a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/graphics/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ GraphicsManager::GraphicsManager() : Events::Notifyable() {
}

GraphicsManager::~GraphicsManager() {
deinit();
try {
deinit();
} catch (...) {
}
}

void GraphicsManager::init() {
Expand Down

0 comments on commit 6c703a9

Please sign in to comment.