Changeset 152371 in webkit


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

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

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

Free the memory created by g_strdup_printf.

  • DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:

(AccessibilityUIElement::language):

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:

(WTR::AccessibilityUIElement::language):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r152366 r152371  
     12013-07-03  Brian Holt  <brian.holt@samsung.com>
     2
     3        [ATK] Leak: more leaks in AccessibilityUIElement
     4        https://bugs.webkit.org/show_bug.cgi?id=118362
     5
     6        Reviewed by Christophe Dumez.
     7
     8        Free the memory created by g_strdup_printf.
     9
     10        * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
     11        (AccessibilityUIElement::language):
     12        * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
     13        (WTR::AccessibilityUIElement::language):
     14
    1152013-07-03  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Tools/DumpRenderTree/atk/AccessibilityUIElementAtk.cpp

    r152298 r152371  
    437437        return JSStringCreateWithCharacters(0, 0);
    438438
    439     return JSStringCreateWithUTF8CString(g_strdup_printf("AXLanguage: %s", locale));
     439    GOwnPtr<char> axValue(g_strdup_printf("AXLanguage: %s", locale));
     440    return JSStringCreateWithUTF8CString(axValue.get());
    440441}
    441442
  • trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp

    r151831 r152371  
    623623        return JSStringCreateWithCharacters(0, 0);
    624624
    625     return JSStringCreateWithUTF8CString(g_strdup_printf("AXLanguage: %s", locale));
     625    GOwnPtr<char> axValue(g_strdup_printf("AXLanguage: %s", locale));
     626    return JSStringCreateWithUTF8CString(axValue.get());
    626627}
    627628
Note: See TracChangeset for help on using the changeset viewer.