Commit ccebbb47 authored by xan@webkit.org's avatar xan@webkit.org

2009-05-05 Xan Lopez <xlopez@igalia.com>

        Reviewed by Holger Freyther.

        Fix memory leaks.

        * WebCoreSupport/EditorClientGtk.cpp:
        (WebKit::EditorClient::checkSpellingOfString):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9a0ca4c7
2009-05-05 Xan Lopez <xlopez@igalia.com>
Reviewed by Holger Freyther.
Fix memory leaks.
* WebCoreSupport/EditorClientGtk.cpp:
(WebKit::EditorClient::checkSpellingOfString):
2009-05-02 Gustavo Noronha Silva <gns@gnome.org>
Reviewed by Holger Freyther.
......
......@@ -619,6 +619,7 @@ void EditorClient::checkSpellingOfString(const UChar* text, int length, int* mis
g_utf8_strncpy(word, cstart, end - start);
result = enchant_dict_check(lang->speller, word, -1);
g_free(word);
if (result) {
*misspellingLocation = start;
*misspellingLength = wordLength;
......@@ -631,6 +632,9 @@ void EditorClient::checkSpellingOfString(const UChar* text, int length, int* mis
}
}
}
g_free(attrs);
g_free(ctext);
}
void EditorClient::checkGrammarOfString(const UChar*, int, Vector<GrammarDetail>&, int*, int*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment