Changeset 57333 in webkit


Ignore:
Timestamp:
Apr 9, 2010 5:12:27 AM (14 years ago)
Author:
Simon Hausmann
Message:

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

Patch by David Leong <david.leong@nokia.com> on 2010-04-09
Reviewed by Simon Hausmann.

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

Added check for NULL to avoid the crash.

  • plugins/symbian/PluginViewSymbian.cpp:

(WebCore::PluginView::platformDestroy):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57326 r57333  
     12010-04-09  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.
     10
     11        * plugins/symbian/PluginViewSymbian.cpp:
     12        (WebCore::PluginView::platformDestroy):
     13
    1142010-04-09  Mark Rowe  <mrowe@apple.com>
    215
  • trunk/WebCore/plugins/symbian/PluginViewSymbian.cpp

    r56546 r57333  
    416416{
    417417    QWebPageClient* client = m_parentFrame->view()->hostWindow()->platformPageClient();
    418     if (QGraphicsWebView *webView = qobject_cast<QGraphicsWebView*>(client->pluginParent()))
     418    if (client && qobject_cast<QGraphicsWebView*>(client->pluginParent()))
    419419        delete static_cast<PluginContainerSymbian*>(platformPluginWidget())->proxy();
    420420    else
Note: See TracChangeset for help on using the changeset viewer.