[GTK] Build is broken with GLib Unicode backend
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Sep 2012 11:32:30 +0000 (11:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Sep 2012 11:32:30 +0000 (11:32 +0000)
commit2a94b72574d8934fd227c81e640423a58e3add3a
treed44604857f533f1c234c51e29d8632278b7c2532
parentb61545bdcc6c774c0730160218e5231b02b5ac52
[GTK] Build is broken with GLib Unicode backend
https://bugs.webkit.org/show_bug.cgi?id=97308.

Patch by Thierry Reding <thierry.reding@avionic-design.de> on 2012-09-22
Reviewed by Carlos Garcia Campos.

The TextBreakIteratorGtk implementation uses ubrk_close() to delete
the iterator. However that function is ICU specific and not declared
when using the GLib backend. Instead the iterator can simply be freed
using the delete operator.

This commit is based on work by Martin Schlemmer who posted a fix for
this here:

    http://permalink.gmane.org/gmane.os.opendarwin.webkit.gtk/1210

No new tests.

* platform/text/gtk/TextBreakIteratorGtk.cpp:
(WebCore::NonSharedCharacterBreakIterator::~NonSharedCharacterBreakIterator):
Free iterator using delete instead of ubrk_close().

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