Changeset 143105 in webkit


Ignore:
Timestamp:
Feb 16, 2013 10:08:47 AM (11 years ago)
Author:
jochen@chromium.org
Message:

[chromium] destroy the TestPlugin when the destroy() method is invoked.
https://bugs.webkit.org/show_bug.cgi?id=110012

Reviewed by Adam Barth.

  • DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp:

(WebTestRunner::TestPlugin::destroy):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r143067 r143105  
     12013-02-16  Jochen Eisinger  <jochen@chromium.org>
     2
     3        [chromium] destroy the TestPlugin when the destroy() method is invoked.
     4        https://bugs.webkit.org/show_bug.cgi?id=110012
     5
     6        Reviewed by Adam Barth.
     7
     8        * DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp:
     9        (WebTestRunner::TestPlugin::destroy):
     10
    1112013-02-15  Adenilson Cavalcanti  <cavalcantii@gmail.com>
    212
  • trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp

    r142237 r143105  
    140140}
    141141
     142void deferredDelete(void* context)
     143{
     144    TestPlugin* plugin = static_cast<TestPlugin*>(context);
     145    delete plugin;
     146}
     147
    142148}
    143149
     
    232238    m_container = 0;
    233239    m_frame = 0;
     240
     241    Platform::current()->callOnMainThread(deferredDelete, this);
    234242}
    235243
Note: See TracChangeset for help on using the changeset viewer.