Changeset 152298 in webkit


Ignore:
Timestamp:
Jul 2, 2013 9:50:49 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[ATK] Leak: leaks in AccessibilityUIElement
https://bugs.webkit.org/show_bug.cgi?id=118297

Fixed memory leak.

Patch by Brian Holt <brian.holt@samsung.com> on 2013-07-02
Reviewed by Christophe Dumez.

  • DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:

(AccessibilityUIElement::stringValue):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r152295 r152298  
     12013-07-02  Brian Holt  <brian.holt@samsung.com>
     2
     3        [ATK] Leak: leaks in AccessibilityUIElement
     4        https://bugs.webkit.org/show_bug.cgi?id=118297
     5
     6        Fixed memory leak.
     7
     8        Reviewed by Christophe Dumez.
     9
     10        * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
     11        (AccessibilityUIElement::stringValue):
     12
    1132013-07-02  Byungwoo Lee  <bw80.lee@samsung.com>
    214
  • trunk/Tools/DumpRenderTree/atk/AccessibilityUIElementAtk.cpp

    r151831 r152298  
    421421        return JSStringCreateWithCharacters(0, 0);
    422422
    423     gchar* text = atk_text_get_text(ATK_TEXT(m_element), 0, -1);
    424     GOwnPtr<gchar> axValue(g_strdup_printf("AXValue: %s", replaceCharactersForResults(text)));
    425     g_free(text);
     423    GOwnPtr<gchar> text(atk_text_get_text(ATK_TEXT(m_element), 0, -1));
     424    GOwnPtr<gchar> textWithReplacedCharacters(replaceCharactersForResults(text.get()));
     425    GOwnPtr<gchar> axValue(g_strdup_printf("AXValue: %s", textWithReplacedCharacters.get()));
    426426
    427427    return JSStringCreateWithUTF8CString(axValue.get());
Note: See TracChangeset for help on using the changeset viewer.