memory leak in KonqHistoryManager

David Faure faure at kde.org
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&) (konq_historymgr.cc:320)

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 kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: konq_historymgr.cc.diff
Type: text/x-diff
Size: 1078 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050128/8fbe4b8f/attachment.diff>


More information about the kde-core-devel mailing list