4.6 QWebView memory leaks?

I wrote a quick test application to use Google Analytics scripts in a client application. It works fine with QWebViewand

QWebFrame* pFrame = m_pWebView->page()->mainFrame();
pFrame->setContent(arrayHtml);
pFrame->evaluateJavaScript(strScript);

But no matter what I do, I cannot make him free his memory. Each time I call the script, it continues to add to the memory used in this process. I even try delete m_pWebView, and memory usage still exists. I also tried the call QWebSettings::clearMemoryCaches()and it did not work.

Is this a memory leak or is there some other magic that I can use to make it not consume all the PC memory.

+5
source share

All Articles