[Qt-interest] How to properly destroy QWebViews?

Peter pgeorges at gmail.com
Thu Oct 29 06:12:36 CET 2009


Thanks for the info, it seems fine when I run the program with valgrind
(some memory leaks in QtWebKit which I may look into further).

On Thu, Oct 29, 2009 at 3:14 AM, Sean Harmer <
sean.harmer at maps-technology.com> wrote:

> 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.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091029/28ac6575/attachment.html 


More information about the Qt-interest-old mailing list