Fix for Coverity issue 157131.
Don't allow exception to be thrown from OPENGL_COMPOSITOR dtor.
This commit is contained in:
parent
7318417ca4
commit
509b1b7141
|
@ -56,7 +56,17 @@ OPENGL_COMPOSITOR::OPENGL_COMPOSITOR() :
|
||||||
OPENGL_COMPOSITOR::~OPENGL_COMPOSITOR()
|
OPENGL_COMPOSITOR::~OPENGL_COMPOSITOR()
|
||||||
{
|
{
|
||||||
if( m_initialized )
|
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() );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue