[Webkit-unassigned] [Bug 24458] QWebView memory leak

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 9 10:39:30 PDT 2009


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





------- Comment #2 from Kelemen.Balazs.3 at stud.u-szeged.hu  2009-03-09 10:39 PDT -------
Another test case that loads the same page through one WebView in a loop.
It shows that memory usage goes up and up by WebKit itself.

#include <QWebView>
#include <QtGui>

class Loader : public QObject {
    Q_OBJECT
public:
    Loader(QWebView* view, const QUrl& url) : m_view(view), m_url(url) {}

public slots:
    void loadNext()
    {
        m_view->load(m_url);
    }

private:
    QWebView* m_view;
    QUrl m_url;
};

#include "main.moc"

int main(int argc, char **argv)
{
    QApplication application(argc, argv);
    QWebView view;
    QUrl url("http://www.webkit.org");
    Loader loader(&view, url);
    QObject::connect(&view, SIGNAL(loadFinished(bool)), &loader,
SLOT(loadNext()));
    view.load(url);
    view.show();

    return application.exec();
}


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



More information about the webkit-unassigned mailing list