From 2fb46fb3ddb848246713798ecea7551484ab6366 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Dec 2018 09:41:06 +0530 Subject: [PATCH] Get rid of locale storage since it does not fix the crash --- src/calibre/gui2/tweak_book/editor/syntax/html.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/syntax/html.py b/src/calibre/gui2/tweak_book/editor/syntax/html.py index 96ce24940e..e0296dd5e3 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/html.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/html.py @@ -73,7 +73,6 @@ if _speedup is not None: def spell_property(sfmt, locale): s = QTextCharFormat(sfmt) s.setProperty(SPELL_LOCALE_PROPERTY, locale) - s.mem = locale # ensure locale is not garbage collected return s _speedup.init(spell_property, dictionaries.recognized, split_into_words_and_positions) del spell_property