[Kdelibs-bugs] [BUG] Crash in Download Progress

David Faure faure at kde.org
Fri Nov 2 11:06:37 CET 2007


On Thursday 01 November 2007, Rafael Fernández López wrote:
> Attached is a patch. QByteArray is implicitly shared. When you create with the 
> copy constructor another object, they are internally shared, and when one of 
> them is destroyed and the other tries to access, boom !!

This makes no sense to me.
The whole point of refcounting is that when one of them is destroyed the other one is still fine.
Do you have an actual valgrind log of this crash, or is this just guessing?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kdelibs-bugs mailing list