[Qt-interest] How to properly destroy QWebViews?
Sean Harmer
sean.harmer at maps-technology.com
Wed Oct 28 17:14:06 CET 2009
Hi,
On Wednesday 28 Oct 2009 16:08:44 Peter wrote:
<snip>
> What else must be done to completely free the memory used? If I goto a
> large site, the memory usage shoots up but closing a tab does not clear it
> all. Does QtWebKit keep some other objects laying around? Is it because I
> share a single networkAccessManager between each QWebView?
>
>
> Any assistance would be appreciated!
I think it is simply because the OS does not claim the memory back from the
application. Instead it leaves it there for the app to use again should it
wish to do so.
You might want to search the list archives I think this question comes up a
few times a year - not necessarily related to the webkit component though. For
e.g.:
http://lists.trolltech.com/qt-interest/2008-01/thread00490-0.html
HTH,
Sean
ps You could run your app through valgrind to check for genuine memory leaks
though.
More information about the Qt-interest-old
mailing list