libfm
libfm copied to clipboard
Fix crash with "immediate" finalization
If _fm_file_info_finalize()
and _fm_mime_type_finalize()
are called "immediately" after initialization, some FmFileInfo functions might still be called and so, a crash might happen (see https://github.com/lxde/pcmanfm-qt/issues/397 and especially, https://github.com/lxde/pcmanfm-qt/issues/397#issuecomment-261772717). This commit is a hack rather than a nice solution.
@LStranger what's your opinion on this one?
@LStranger?
@agaida This doesn't concern us (lxqt) anymore; the code is in libfm-qt now and we don't have this problem.
:)
I hope to rework it all later this year so make it correctly instead of this workaround. I'm sorry for being so late with this.