Bug 51086

Summary: [Qt] QWebView::setUrl leaks 6 MB
Product: WebKit Reporter: webkit95
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Minor CC: benjamin, cmarcelo, menard, zoltan
Priority: P3 Keywords: Qt, QtTriaged
Version: 523.x (Safari 3)   
Hardware: PC   
OS: Windows XP   

webkit95
Reported 2010-12-14 18:59:22 PST
According to BoundsChecker, and verified with Memory Validator, the following code results 10,245 leaks for a total 6 MB in memory leaked: #include <QApplication> #include <QWebView> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWebView* pWidget = new QWebView(); pWidget->setUrl(QUrl("http://www.google.com")); pWidget->show(); a.exec(); delete pWidget; return 0; } using Qt 4.6.3. The largest single leak is 4.2 MB with the following call stack: RegisterFile::RegisterFile Interpreter::Interpreter JSGlobalData::JSGlobalData JSGlobalData::create JSGlobalData::createLeaked Additional calls to setUrl add 6-7 additional MBs.
Attachments
Benjamin Poulain
Comment 1 2011-01-14 07:44:16 PST
Please follow this to report bugs on QtWebKit: http://trac.webkit.org/wiki/QtWebKitBugs Zoltan, does that looks valid or is it a buggy tool?
Zoltan Horvath
Comment 2 2011-02-17 07:33:45 PST
I don't know MS BoundsChecke. I don't think that these classes are leaking. Reporter, can you reproduce this with latest trunk or with Qt-4.7.1 also?
Alexis Menard (darktears)
Comment 3 2011-04-06 11:09:21 PDT
I can't find leak with Valgrind. I close.
Note You need to log in before you can comment on or make changes to this bug.