mirror of https://github.com/MidnightCommander/mc
Ticket #4576: fix visual glitches by avoiding `g_module_close` on `NULL` while loading `libaspell`
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
ac4305dde4
commit
876555035a
|
@ -174,8 +174,10 @@ spell_available (void)
|
|||
|
||||
spell_module = g_module_open ("libaspell", G_MODULE_BIND_LAZY);
|
||||
|
||||
if (spell_module != NULL
|
||||
&& ASPELL_FUNCTION_AVAILABLE (new_aspell_config)
|
||||
if (spell_module == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (ASPELL_FUNCTION_AVAILABLE (new_aspell_config)
|
||||
&& ASPELL_FUNCTION_AVAILABLE (aspell_dict_info_list_elements)
|
||||
&& ASPELL_FUNCTION_AVAILABLE (aspell_dict_info_enumeration_next)
|
||||
&& ASPELL_FUNCTION_AVAILABLE (new_aspell_speller)
|
||||
|
|
Loading…
Reference in New Issue