Skip to content

Commit

Permalink
Never cleanup (unload) the spellchecker module since reloading it cou…
Browse files Browse the repository at this point in the history
…ld lead to a crash; fix kvirc#2645
  • Loading branch information
ctrlaltca committed Jun 9, 2024
1 parent 04f93ac commit ebb86d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/spellchecker/libkvispellchecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,18 @@ static bool spellchecker_module_cleanup(KviModule *)
return true;
}

static bool spellchecker_module_can_unload(KviModule *)
{
return false;
}

KVIRC_MODULE(
"SpellChecker", // module name
"4.0.0", // module version
"Copyright (C) 2014 Alexey Sokolov (sokolov at google dot com)", // author & (C)
"Spell checker",
spellchecker_module_init,
0,
spellchecker_module_can_unload,
0,
spellchecker_module_cleanup,
0)

0 comments on commit ebb86d7

Please sign in to comment.