[Bug 57902] kdevelop crashes when discarding changes in file

Daniel Franke daniel.franke at imbs.uni-luebeck.de
Tue Jan 13 16:28:06 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=57902      




------- Additional Comments From daniel.franke at imbs.uni-luebeck.de  2004-01-13 16:26 -------
I had a closer look at historypart.cpp. In HistoryPart::HistoryPart, 
autoDelete of HistoryPart::m_history is enabled:
--
m_history.setAutoDelete(true);
--

Diabling this, the crash described above disappears. 
It seems as if 'part' is deleted twice in:
--
void HistoryPart::partRemoved(KParts::Part *part)
{
  QPtrListIterator<HistoryEntry> it(m_history);

   for ( ; it.current(); ++it)
     if (it.current()->m_part == part)
       m_history.remove(it.current()); // crash here, if autoDelete() == true

  updateActions();
}

I can't get all the implications of disabling autoDelete, maybe anyone could explain this detail? 

[btw, I' using qt-x11-free-3.1.2 (solaris)]




More information about the KDevelop-devel mailing list