mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5276 Ensemble : Guard null pointer access causing crash
This commit is contained in:
@@ -426,6 +426,8 @@ void RiuQwtPlotWidget::addOverlayFrame( RiuDraggableOverlayFrame* overlayFrame )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuQwtPlotWidget::removeOverlayFrame( RiuDraggableOverlayFrame* overlayFrame )
|
||||
{
|
||||
CAF_ASSERT( overlayFrame );
|
||||
|
||||
overlayFrame->hide();
|
||||
overlayFrame->setParent( nullptr );
|
||||
m_overlayFrames.removeOne( overlayFrame );
|
||||
|
||||
Reference in New Issue
Block a user