Changeset 56627 in webkit


Ignore:
Timestamp:
Mar 26, 2010 8:22:55 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-26 Shu Chang <chang.shu@nokia.com>

Reviewed by Eric Seidel.

[Qt] Prevent referring d->m_job in the future because calling abort()
deletes the instance itself.
https://bugs.webkit.org/show_bug.cgi?id=36618

Test: http/tests/appcache/fallback.html

  • platform/network/qt/ResourceHandleQt.cpp: (WebCore::ResourceHandle::cancel):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r56624 r56627  
     12010-03-26  Shu Chang  <chang.shu@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [Qt] Prevent referring d->m_job in the future because calling abort()
     6        deletes the instance itself.
     7        https://bugs.webkit.org/show_bug.cgi?id=36618
     8
     9        Test: http/tests/appcache/fallback.html
     10
     11        * platform/network/qt/ResourceHandleQt.cpp:
     12        (WebCore::ResourceHandle::cancel):
     13
    1142010-03-26  Stephen White  <senorblanco@chromium.org>
    215
  • trunk/WebCore/platform/network/qt/ResourceHandleQt.cpp

    r56386 r56627  
    145145void ResourceHandle::cancel()
    146146{
    147     if (d->m_job)
     147    if (d->m_job) {
    148148        d->m_job->abort();
     149        d->m_job = 0;
     150    }
    149151}
    150152
Note: See TracChangeset for help on using the changeset viewer.