Changeset 58035 in webkit


Ignore:
Timestamp:
Apr 21, 2010 6:30:00 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-21 David Leong <david.leong@nokia.com>

Reviewed by Simon Hausmann.

[Qt] Symbian apps crash on exit due to a bad qObject_cast.

https://bugs.webkit.org/show_bug.cgi?id=37303

Added check for NULL to avoid the crash. Reworked to fix memory leak

  • plugins/symbian/PluginViewSymbian.cpp: (WebCore::PluginView::platformDestroy):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58031 r58035  
     12010-04-21  David Leong  <david.leong@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Symbian apps crash on exit due to a bad qObject_cast.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=37303
     8
     9        Added check for NULL to avoid the crash. Reworked to fix memory leak
     10           
     11        * plugins/symbian/PluginViewSymbian.cpp:
     12        (WebCore::PluginView::platformDestroy):
     13
    1142009-04-21  Chris Fleizach  <cfleizach@apple.com>
    215
  • trunk/WebCore/plugins/symbian/PluginViewSymbian.cpp

    r57333 r58035  
    415415void PluginView::platformDestroy()
    416416{
    417     QWebPageClient* client = m_parentFrame->view()->hostWindow()->platformPageClient();
    418     if (client && qobject_cast<QGraphicsWebView*>(client->pluginParent()))
    419         delete static_cast<PluginContainerSymbian*>(platformPluginWidget())->proxy();
    420     else
    421         delete platformPluginWidget();
     417    if (platformPluginWidget()) {
     418        PluginContainerSymbian* container = static_cast<PluginContainerSymbian*>(platformPluginWidget());
     419        delete container->proxy();
     420        delete container;
     421    }
    422422}
    423423
Note: See TracChangeset for help on using the changeset viewer.