Bug 51086
Summary: | [Qt] QWebView::setUrl leaks 6 MB | ||
---|---|---|---|
Product: | WebKit | Reporter: | webkit95 |
Component: | JavaScriptCore | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Benjamin Poulain
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
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)
I can't find leak with Valgrind. I close.