Commit 8a8503f7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Effect: Fix potential crash when deleting an effect.

parent 45ebbbd5
......@@ -36,7 +36,11 @@ Effect::Effect( const QString &fileName ) :
Effect::~Effect()
{
m_f0r_deinit();
if ( isLoaded() == true )
{
m_f0r_deinit();
unload();
}
qDeleteAll( m_params );
m_params.clear();
}
......
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