[Webkit-unassigned] [Bug 45034] New: [QtWebkit] Memory leak is observed in qwebpage.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 1 05:17:12 PDT 2010


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

           Summary: [QtWebkit] Memory leak is observed in qwebpage.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sreedhar.vaddi at nokia.com


Memory Leak Observed in qwebpage.

I am going through the code of qwebpage.cpp I found the below code
void QWebPage::setView(QWidget* view)
{
    if (this->view() == view)
        return;

    d->view = view;
    setViewportSize(view ? view->size() : QSize(0, 0));

    // If we have no client, we install a special client delegating
    // the responsibility to the QWidget. This is the code path
    // handling a.o. the "legacy" QWebView.
    //
    // If such a special delegate already exist, we substitute the view.

    if (d->client) {
        if (d->client->isQWidgetClient())
            static_cast<PageClientQWidget*>(d->client)->view = view;
        return;
    }

    if (view)
        d->client = new PageClientQWidget(view);
}

Here d->client is created but it is not deleted.

I have QtWebkit build on S60(Symbian) environment. 
I found this as a leak using hook logger while executing unit testcases.
<M:\sf\os\ossrv\genericopenlibs\cppstdlib\src\stdcpp_support.cpp #83> + 15 -
libstdcppv5.dll! 63913640()
        QWebPage::setView(class QWidget *)
<Y:\sf\mw\qt\src\3rdparty\webkit\WebKit\qt\Api\qwebpage.cpp #1787> + 7 -
QtWebKit.dll! 53ef2107()
        QWebPage::QWebPage(class QObject *)
<Y:\sf\mw\qt\src\3rdparty\webkit\WebKit\qt\Api\qwebpage.cpp #1694> + 24 -
QtWebKit.dll! 53ef1d42()
        WRT::WrtPage::WrtPage(class QWidget *)
<T:\cwrt\wrt\runtimecore\wrtpage.cpp #54> + 43 - RuntimeCore.dll! 4f3e8f4b()
        WRT::WrtControllerPrivate::WrtControllerPrivate(class QWidget *,enum
WRT::WebKitView) <T:\cwrt\wrt\runtimecore\wrtcontroller.cpp #62> + 39 -
RuntimeCore.dll! 4f3eac53()
        WRT::WrtController::WrtController(class QWidget *,enum WRT::WebKitView)
<T:\cwrt\wrt\runtimecore\wrtcontroller.cpp #149> + 21 - RuntimeCore.dll!
4f3eb25e()

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list