[GTK] Segfaults in enchant_broker_free_dict()
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2018 07:11:04 +0000 (07:11 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2018 07:11:04 +0000 (07:11 +0000)
commitc49bead1e9797e32f0414e7aa48c6b5ec1afcb2c
tree20686dfa1279ef4bd2235eb188b426cec9e8f593
parentfd8d39ca26963f76fdd7295daf8b2d79dee38a14
[GTK] Segfaults in enchant_broker_free_dict()
https://bugs.webkit.org/show_bug.cgi?id=183738

Reviewed by Michael Catanzaro.

Check enchant_broker_request_dict() didn't return nullptr before adding it to the m_enchantDictionaries vector.

* platform/text/enchant/TextCheckerEnchant.cpp:
(WebCore::TextCheckerEnchant::updateSpellCheckingLanguages):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp