[WebKit-devel] QNetworkReply handling

Dawit A adawit at kde.org
Tue May 11 19:05:52 CEST 2010


On Tuesday, May 11, 2010 11:10:49 Andrea Diamantini wrote:
> Hi all,
> I'd like to point out a question about QNetworkReply handling.
> As docs clearly says
> (http://doc.qt.nokia.com/4.6/qnetworkaccessmanager.html#details)
> it's user responsibility deleting their instances after load is finished,
> but I noticed Arora nor KWebKitPart implementations call deleteLater on
> them. Moreover, adding it to rekonq code leads to segfaults here and
> there. So, is this a "known" bug? Is doc wrong or I simply am missing
> something?

That is because QtWebKit which originated the request is responsible for it. 
Since you have no way of knowing when QtWebKit might be done with the object, 
you should not attempt to delete it yourself.

Regards,
Dawit A.



More information about the WebKit-devel mailing list