memory leak in KonqHistoryManager

David Faure faure at
Fri Jan 28 20:39:30 GMT 2005

On Friday 28 January 2005 21:32, André Wöbbeking wrote:
> Hi,
> here is the next one
> operator new(unsigned) (vg_replace_malloc.c:133)
> KonqHistoryManager::addToHistory(bool, KURL const&, QString const&, QString const&) (

This is weird. Any code which removes an item from the map correctly deletes it,
and the destructor calls the right code for clearing the map.

Ah - maybe there are duplicates, and insert() hides a previous entry.
In that case the attached patch might help. Can you test it?

David Faure, faure at, sponsored by Trolltech to work on KDE,
Konqueror (, and KOffice (
-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-diff
Size: 1078 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list