Commit 9caf0210 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Fix a crash if the media library gets released without being initialized

parent a48f19f9
......@@ -59,7 +59,8 @@ MediaLibrary::~MediaLibrary()
// with a log callback set will try to invoke it.
// We manually call logUnset to ensure that the callback that is about to be deleted will
// not be called anymore.
m_vlcInstance.logUnset();
if ( m_vlcInstance.isValid() )
m_vlcInstance.logUnset();
File::clear();
Folder::clear();
Label::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