Changeset 70776 in webkit


Ignore:
Timestamp:
Oct 28, 2010 7:52:05 AM (13 years ago)
Author:
kbalazs@webkit.org
Message:

2010-10-28 Balazs Kelemen <kbalazs@webkit.org>

Reviewed by Andreas Kling.

[Qt][WK2] SharedMemory should be released by the receiving process
https://bugs.webkit.org/show_bug.cgi?id=48520

  • Platform/qt/SharedMemoryQt.cpp: (WebKit::SharedMemory::~SharedMemory): (WebKit::SharedMemory::createHandle):
Location:
trunk/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r70760 r70776  
     12010-10-28  Balazs Kelemen  <kbalazs@webkit.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt][WK2] SharedMemory should be released by the receiving process
     6        https://bugs.webkit.org/show_bug.cgi?id=48520
     7
     8        * Platform/qt/SharedMemoryQt.cpp:
     9        (WebKit::SharedMemory::~SharedMemory):
     10        (WebKit::SharedMemory::createHandle):
     11
    1122010-10-28  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>
    213
  • trunk/WebKit2/Platform/qt/SharedMemoryQt.cpp

    r70520 r70776  
    123123SharedMemory::~SharedMemory()
    124124{
     125    if (!m_data) {
     126        // Ownership of the mapped memory has been passed.
     127        return;
     128    }
     129
    125130    MappedMemory* mappedMemory = mappedMemoryPool->searchForMappedMemory(reinterpret_cast<uchar*>(m_data));
    126131    if (mappedMemory)
     
    141146    handle.m_size = m_size;
    142147
     148    // Hand off ownership of the mapped memory to the receiving process.
     149    m_data = 0;
     150
    143151    return true;
    144152}
Note: See TracChangeset for help on using the changeset viewer.