[Webkit-unassigned] [Bug 42759] Always freeing m_logAttrs in TextBreakIteratorGtk.cpp: setUpIterator()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 3 04:09:37 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=42759


Peter Hatina <phatina at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #92060|                            |review?
               Flag|                            |




--- Comment #1 from Peter Hatina <phatina at redhat.com>  2011-05-03 04:09:37 PST ---
Created an attachment (id=92060)
 --> (https://bugs.webkit.org/attachment.cgi?id=92060&action=review)
m_logAttrs freed when necessary

In the static function setUpIterator(...), the iterator public member m_logAttrs is freed and reallocated, when its length isn't sufficient for the proposed string. Otherwise, no allocation + deallocation is called and we can use part of the former array m_logAttrs.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list