开发者

4.6 QWebView memory leaks?

I wrote a quick test app to use the google analytics scripts in a client app. It works fine using QWebView and

QWebFrame* pFrame = 开发者_Go百科m_pWebView->page()->mainFrame();
pFrame->setContent(arrayHtml);
pFrame->evaluateJavaScript(strScript);

But no matter what I do I cannot get it to release memory. Every time I call the script it keeps adding to memory used in the process. I even try delete m_pWebView and the memory usage is still there. I also tried the QWebSettings::clearMemoryCaches() call and it did not work.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜