Changeset 128327 in webkit


Ignore:
Timestamp:
Sep 12, 2012 9:41:58 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] [WK2] Memory leaks in TestControllerEfl
https://bugs.webkit.org/show_bug.cgi?id=96525

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-09-12
Reviewed by Kenneth Rohde Christiansen.

Fix memory leaks in EFL's TestRunner code by adopting an allocation
of WKString created with WKStringCreateWithUTF8CString().

  • WebKitTestRunner/efl/TestControllerEfl.cpp:

(WTR::TestController::initializeInjectedBundlePath):
(WTR::TestController::initializeTestPluginDirectory):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r128326 r128327  
     12012-09-12  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        [EFL] [WK2] Memory leaks in TestControllerEfl
     4        https://bugs.webkit.org/show_bug.cgi?id=96525
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Fix memory leaks in EFL's TestRunner code by adopting an allocation
     9        of WKString created with WKStringCreateWithUTF8CString().
     10
     11        * WebKitTestRunner/efl/TestControllerEfl.cpp:
     12        (WTR::TestController::initializeInjectedBundlePath):
     13        (WTR::TestController::initializeTestPluginDirectory):
     14
    1152012-09-12  Christophe Dumez  <christophe.dumez@intel.com>
    216
  • trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp

    r123643 r128327  
    8686{
    8787    const char* bundlePath = getEnvironmentVariableOrExit("TEST_RUNNER_INJECTED_BUNDLE_FILENAME");
    88     m_injectedBundlePath = WKStringCreateWithUTF8CString(bundlePath);
     88    m_injectedBundlePath.adopt(WKStringCreateWithUTF8CString(bundlePath));
    8989}
    9090
     
    9292{
    9393    const char* pluginPath = getEnvironmentVariableOrExit("TEST_RUNNER_PLUGIN_PATH");
    94     m_testPluginDirectory = WKStringCreateWithUTF8CString(pluginPath);
     94    m_testPluginDirectory.adopt(WKStringCreateWithUTF8CString(pluginPath));
    9595}
    9696
Note: See TracChangeset for help on using the changeset viewer.