Commit d811e20b authored by Rémi Duraffort's avatar Rémi Duraffort

qt4: remove an assert (a check for NULLity is enough).

parent 636b4a6b
......@@ -171,10 +171,12 @@ void VideoWidget::release( void )
{
msg_Dbg( p_intf, "Video is not needed anymore" );
assert( stable );
layout->removeWidget( stable );
stable->deleteLater();
stable = NULL;
if( stable )
{
layout->removeWidget( stable );
stable->deleteLater();
stable = NULL;
}
updateGeometry();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment