Chromium Code Reviews
DescriptionThe first step towards fixing valgrind errors in the new hunspell.
This change fixes valgrind errors occured when running 'SpellCheckTest.SpellCheckStrings_EN_US' and 'SpellCheckTest.SpellCheckText'.
It seems the original code forgots deleting a temporary buffer created in 'line = new char[]'. To avoid creating a temporary buffer, this change implements our own FileMgr class that encapsulates operations for reading a BDICT file, and put some of our hacks in the class.
BUG=14756
TEST=chrome_test.sh -t unit --gtest_filter='SpellCheckTest.SpellCheckStrings_EN_US'
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24590
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #
Messages
Total messages: 2 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||