From b637f5f35ae75ae51dc57e910df21c6dc872998e Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Fri, 8 May 2026 17:22:11 +0200 Subject: Windows spellchecker: avoid crash on double deletion (#2758) Fix #2757--- src/modules/spellchecker/libkvispellchecker.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/modules/spellchecker/libkvispellchecker.cpp b/src/modules/spellchecker/libkvispellchecker.cpp index be04c564f..6e21518bd 100644 --- a/src/modules/spellchecker/libkvispellchecker.cpp +++ b/src/modules/spellchecker/libkvispellchecker.cpp @@ -237,7 +237,6 @@ static void spellchecker_reload_dicts() while(!g_pWinSpellDicts->isEmpty()) { auto pDict = g_pWinSpellDicts->takeFirst(); pDict->Release(); - delete pDict; } #endif @@ -331,11 +330,9 @@ static bool spellchecker_module_cleanup(KviModule *) while(!g_pWinSpellDicts->isEmpty()) { auto pDict = g_pWinSpellDicts->takeFirst(); pDict->Release(); - delete pDict; } g_pWinSpellFactory->Release(); - delete g_pWinSpellFactory; g_pWinSpellFactory = nullptr; #endif -- cgit v1.3.1-10-gc9f91