Hello! I have found that QWebPage leaks memrory.
Here is my code:
#include <QApplication>
#include <QWebPage>
int main(int argc, char *argv[])
{
while(1){
QWebPage* page = new QWebPage();
delete page;
}
return app.exec();
}
#include <QApplication>
#include <QWebPage>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
while(1){
QWebPage* page = new QWebPage();
delete page;
}
return app.exec();
}
To copy to clipboard, switch view to plain text mode
It leaks a lot of memory.
Can anyone please exmplain what I do wrong? Or may be this is a bug of WebKit?
I'm using Qt Creator 2.4.1 under Windows 7.
Bookmarks