[Bug 35605] Re: kpartsaver segfaults
Tomasz Brzezina
tomasz at brzezina.pl
Mon Sep 11 12:57:06 UTC 2006
after great war i found the problem. I don't understand why it's a
problem, but when i workaround it - the problem disappears:
changes are commented:
1.
void KPartSaver::closeURL()
{
if( m_part ) {
m_part->closeURL();
delete m_part;
m_part = 0;
}
// delete m_factory;
// m_factory = 0;
}
2.
bool KPartSaver::openURL( KURL url )
(...)
//added by TB
if (!m_factory) {
// end by TB
// load kpart library
QString lib = offers.first()->library();
m_factory = KLibLoader::self()->factory( lib.latin1() );
if( !m_factory ) {
kdDebug() << "Library " << lib << " not found." << endl;
closeURL();
return false;
}
// added by TB
}
// end by TB
--
kpartsaver segfaults
https://launchpad.net/bugs/35605
More information about the kubuntu-bugs
mailing list