Fix for Coverity issue 157131.

Don't allow exception to be thrown from OPENGL_COMPOSITOR dtor.
This commit is contained in:
Wayne Stambaugh 2021-02-23 19:09:41 -05:00
parent 7318417ca4
commit 509b1b7141
1 changed files with 11 additions and 1 deletions

View File

@ -56,7 +56,17 @@ OPENGL_COMPOSITOR::OPENGL_COMPOSITOR() :
OPENGL_COMPOSITOR::~OPENGL_COMPOSITOR()
{
if( m_initialized )
clean();
{
try
{
clean();
}
catch( const std::runtime_error& exc )
{
wxLogError( wxT( "Run time exception `%s` occurred in OPENGL_COMPOSITOR destructor." ),
exc.what() );
}
}
}