Get rid of locale storage since it does not fix the crash

This commit is contained in:
Kovid Goyal 2018-12-29 09:41:06 +05:30
parent e47a2d888b
commit 2fb46fb3dd
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -73,7 +73,6 @@ def refresh_spell_check_status():
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