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:
Yury V. Zaytsev 2024-08-25 13:21:00 +02:00
parent ac4305dde4
commit 876555035a

View File

@ -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)