Changeset 40160 in webkit


Ignore:
Timestamp:
Jan 23, 2009 7:02:38 AM (15 years ago)
Author:
treat@webkit.org
Message:

Redo previous patch http://trac.webkit.org/changeset/34260 which fixes a
huge memory leak by ensuring that the timer is fired one last time on
application tear down thus triggering the GCController thereby freeing
JavaScript objects as well as triggering other timer based tear down methods.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r40159 r40160  
     12009-01-23  Adam Treat  <adam.treat@torchmobile.com>
     2
     3        Reviewed by Holger Hans Peter Freyther.
     4
     5        Redo previous patch http://trac.webkit.org/changeset/34260 which fixes a
     6        huge memory leak by ensuring that the timer is fired one last time on
     7        application tear down thus triggering the GCController thereby freeing
     8        JavaScript objects as well as triggering other timer based tear down methods.
     9
     10        * platform/qt/SharedTimerQt.cpp:
     11        (WebCore::SharedTimerQt::~SharedTimerQt):
     12
    1132009-01-23  Alexey Proskuryakov  <ap@webkit.org>
    214
  • trunk/WebCore/platform/qt/SharedTimerQt.cpp

    r39784 r40160  
    5353private:
    5454    SharedTimerQt(QObject* parent);
     55    ~SharedTimerQt();
    5556    QBasicTimer m_timer;
    5657    void (*m_timerFunction)();
     
    6162    , m_timerFunction(0)
    6263{}
     64
     65SharedTimerQt::~SharedTimerQt()
     66{
     67    if (m_timer.isActive())
     68        (m_timerFunction)();
     69}
    6370
    6471SharedTimerQt* SharedTimerQt::inst()
Note: See TracChangeset for help on using the changeset viewer.