diff --git a/common/gal/opengl/opengl_compositor.cpp b/common/gal/opengl/opengl_compositor.cpp index e87c219276..0edbd9431c 100644 --- a/common/gal/opengl/opengl_compositor.cpp +++ b/common/gal/opengl/opengl_compositor.cpp @@ -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() ); + } + } }